Skip to content
Hex Reversi game board mid-game

Hex Reversi

Updated 2025

JavaSwing

hex reversi is an extensible reversi/othello implementation on a hexagonal grid. the main emphasis is software design, clean MVC separation, adapters for different play modes, and modular AI strategies you can mix and match.

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

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

  1. 1represent the board on an odd-r hex coordinate system
  2. 2validate moves and apply flips according to reversi rules
  3. 3run players (human/AI) through a controller loop
  4. 4plug different strategies into the AI player

what's next

  • add stronger evaluation heuristics and time controls
  • improve UI polish and strategy visualization