https://onegaimuscle.github.io/Othello/
An elegant, responsive implementation of the classic Othello (Reversi) game with a competitive AI.
- Intuitive graphical interface with dynamic game board
- Multi-level AI difficulty using minimax algorithm with alpha-beta pruning
- Responsive design that adapts to desktop and mobile screens
- Visual indicators showing valid moves (optional)
- Game statistics displaying real-time score
- Customization to choose who plays first
- Objective: Finish the game with more pieces of your color than your opponent
- Taking turns: Place a piece on a valid square (indicated by a light circle if hints are enabled)
- Capturing: All opponent pieces between your new piece and another of your pieces are flipped
- End of game: The game ends when neither player can make a move
- HTML5 for structure
- CSS3 for styling and animations
- Vanilla JavaScript (ES6+) for Game logic and AI
- Service Worker for playing offline
- Works on all modern browsers
- Responsive design for smartphones, tablets, and computers
- Interface optimized for touch screens and mouse
The AI uses a combination of advanced techniques:
- Minimax algorithm to explore possible moves
- Alpha-beta pruning to optimize performance
- Evaluation function based on piece position and Othello strategies
- Multiple difficulty levels to accommodate all players
Developed with ❤️ by TRAN Duc Tai