
Hex Reversi
Updated 2025
JavaSwing
Hex Reversi is an extensible Reversi/Othello implementation on a hexagonal grid. The core emphasis is software design: clean MVC separation, adapters for different play modes, and modular AI strategies that can be mixed and matched.
Cube-coordinate hex board (q+r+s=0) with odd-r offset conversion and configurable side length
TryTwo combinator chains strategies (corners → avoid-near-corners → minimax → capture-max) with fallible/infallible pattern
Four adapter classes bridge third-party provider code without modifying core—ReadOnly model, view, input, and strategy adapters
What I built
- Hex-grid Reversi engine with configurable board shapes and starting states
- MVC architecture with GUI + text views and a controller layer
- Strategy system including minimax and composable heuristics
How it works
- 1Represent the board on an odd-r hex coordinate system
- 2Validate moves and apply flips according to Reversi rules
- 3Run players (human/AI) through a controller loop
- 4Plug different strategies into the AI player
Next steps
- Add stronger evaluation heuristics and time controls
- Improve UI polish and strategy visualization