README.md
Play a classic game of Othello (Reversi) over a local network against another human player.
- Two-player gameplay over a local network
- Standard Othello rules
- Clear board display
Prerequisites
- [Java]
Instructions
-
Clone the repository:
git clone https://github.com/NamHaiBui/Othello.git
-
Navigate to the project directory:
cd Othello
- Start Player 1:
- Run the Othello file.
- Select "HumanP2PPlayer" as the player type.
- Start Player 2:
- Repeat the steps for Player 1 on a separate device or instance of the game.
- Connection:
- When prompted, both players should enter:
- IP Address: localhost (or your IP address for LAN)
- Port: 1111
- When prompted, both players should enter:
- Players take turns placing their colored pieces (black or white) on the board.
- Pieces must be placed to outflank and 'flip' an opponent's piece(s).
- The game ends when the board is full or neither player can make a valid move.
- The player with the most pieces of their color wins.
We welcome contributions to the Othello project!
- Fork the repository.
- Create a new branch.
- Make your changes.
- Submit a pull request.
This project is licensed under the MIT License: https://opensource.org/licenses/MIT - see the LICENSE file for details.