A simple reversi game written in vanilla JS.View on GitHub
Reversi is a simple strategy board game for two players, played on a 8x8 uncheckered board.
There are 64 disks, which are white on one side and black on the other. Players take turn placing the disks on board with their assigned color facing up. Black moves first.
A player must place his disks such that there exists at least one enemy's disk which is surrounded by your new disk and one of your older disk. The surrounded enemy's disks will now be reversed (or outflanked) and now belongs to you.
A valid move is one where at least one piece is reversed.
The game ends when neither player can play a valid move. The player with the most pieces on the board wins.