This is a simple console-based Othello (Reversi) game implemented in Java. The game allows two players to play on the same machine, alternating turns to place their pieces on the board, flipping the opponent's pieces according to the rules of Othello.
- 2-player mode: Player take turns to place pieces on the board
- Valid Move Check: The program ensures that the moves made by players are valid according to the game rules.
- Automatic Flipping: Game Over Detection: The game detects when there are no valid moves left and announces the winner.
- Run the
OthelloGame.java
file to start the game - Palyers will be prompted to enter their moves in the form of coordinates (row, column).
- The game will continue until there are no valid moves left.
- The player with the most pieces at the end of the game wins!
- Clone this repository:
git clone https://github.com/irmnt/MyTestProject.git
- Compile the Java files:
javac OthelloGame.java
- Run the game:
java OthelloGame