Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Othello Game #1865

Closed
wants to merge 11 commits into from
Closed

Conversation

AsmitaMishra24
Copy link
Contributor

@AsmitaMishra24 AsmitaMishra24 commented Jun 22, 2024

πŸ› οΈ Fixes Issue (Number)

Example: Closes #1799

πŸ‘¨β€πŸ’» Changes proposed and Brief Description

Added a fully functional Othello (Reversi) game. The game includes the following features:

  1. Board Setup: Initializes an 8x8 game board with the initial four pieces placed in the center.
  2. Piece Placement: Allows players to place pieces on the board according to Othello rules.
  3. Legal Move Highlighting: Highlights squares where the current player can legally place a piece.
  4. Piece Flipping: Flips opponent's pieces in all directions as per the game rules when a piece is placed.
  5. Turn Switching: Alternates turns between the white and black players, with indicators for the active player.
  6. Score Tracking: Displays and updates the score for both players in real time.
  7. End Game Detection: Detects when the game ends and displays a message indicating the winner or if the game is a draw.
  8. No Legal Move Handling: Handles cases where a player has no legal moves and passes the turn to the opponent.

βœ… Check List (Check all the applicable boxes)

  • My code doesn't break any part of the project
  • This PR does not contain plagiarized content.
  • My Addition/Changes works properly and matches the overall repo pattern.
  • The title of my pull request is a short description of the requested changes.

πŸ“· Screenshots

2othello

1othello

Copy link

netlify bot commented Jun 22, 2024

βœ… Deploy Preview for 30daysofjs ready!

Name Link
πŸ”¨ Latest commit 0ccf64f
πŸ” Latest deploy log https://app.netlify.com/sites/30daysofjs/deploys/66771dba6fa1e00008241c35
😎 Deploy Preview https://deploy-preview-1865--30daysofjs.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@AsmitaMishra24
Copy link
Contributor Author

@swapnilsparsh, please review the pr

1 similar comment
@AsmitaMishra24
Copy link
Contributor Author

@swapnilsparsh, please review the pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Title: Add Othello Game
3 participants