View Demo
- Game Board 8 x 8, 64 black or white pieces
- starting position white, black, black, white (diagonal) at the center of the board.
- Player1 (Black) starts first
- A valid move needs to fulfill 2 conditions below.
- There needs to be at least one adjacent opposite tile.
- in that same direction, there needs to be an identical tile without any gap in between.
- If one player can not make a valid move, play passes back to the other player. When neither player can move, the game ends.
- The player with the most pieces on the board at the end of the game wins.
- Traversing the grid as (x,y) coordinate from one tile to another, when checking for the 2 required conditions for the player move
- Main logic was first built and tested simultaneously with npm test cases
- Requirements / Design
- Game Logic
- UI
- AI (stretch goal) - Future improvement
- https://en.wikipedia.org/wiki/Reversi
- http://www.othelloonline.org/
- background image from here
- icons and images from https://thenounproject.com