A JavaScript implementation of Three Men's Morris board game.
Three Men's Morris, closely related to the board games Morabaraba, Six Men's Morris, Nine Men's Morris, and Twelve Men's Morris, is an abstract strategy game that dates back to before 1400 BC.
The goal of Three Men's Morris is to be the first player to get your three pieces lined up along a straight line.
- Setup Phase: Players taking turns laying their pieces on vacant points.
- Regular Phase: After all six pieces have been laid down, the regular phase begins. In this phase, a turn consists of sliding a piece along a line to a vacant point.
- Whenever a player creates a string of three pieces on one line, he immediately wins. (This can happen during the setup phase or the regular phase.)