A simple yet functional implementation of the classic Reversi (Othello) board game using Windows Forms in C#.
Reversi is a strategy board game for two players, played on an 8×8 uncheckered board. The game pieces have two sides: black and white. Players take turns placing their discs, flipping the opponent's discs by trapping them between two of their own.
- 👥 Human vs Human – Play locally with a friend.
- 🤖 Human vs Computer – Challenge a basic AI opponent.
- Classic 8x8 Reversi gameplay
- Two game modes: Player vs Player and Player vs AI
- Turn-based play with valid move logic
- Automatic disc flipping
- Game over detection and winner announcement
- Simple and clean UI built with Windows Forms
- .NET Framework 4.8
- Visual Studio 2019 or later (recommended)
-
Clone the repository:
git clone https://github.com/AmirAbdollahi/reversi.git
-
Open the solution file
Reversi.sln
in Visual Studio. -
Build and run the project using
F5
or from the Debug menu.
Reversi/
├── GameBoard.cs # Game logic and board state
├── Form1.cs # Main Windows Form UI
├── Program.cs # Entry point
├── Resources/ # Images or assets
└── Reversi.sln # Solution file
- Choose your preferred game mode at startup.
- The black player starts first.
- Each player must place a disc that flips at least one opponent disc.
- Turns alternate until neither player can move.
- The player with the most discs on the board wins.
- Improve AI difficulty and strategy
- Implement game save/load features
- Enhance UI/UX design
Contributions are welcome! Please feel free to submit pull requests or open issues for suggestions and improvements.
This project is licensed under the MIT License.
Developed by Amir Abdollahi
Enjoy playing Reversi, whether you're battling a friend or testing your skills against the computer!