Back to the Garden

Reversi

Growing

Two-player Reversi on one device, with legal moves shown and the game saved in your browser.

Classic Reversi on an 8×8 board, for two people taking turns on one device. The squares you can play are marked, passes happen by themselves, and the disc count is always on show. Take back a move, or start over. Play with the mouse, a finger or the keyboard — arrow keys to move, Enter to place. The game is kept in this browser, so a reload picks up where you left off.

Reversi board
Black2To move
White2

The game is kept in this browser, so you can reload or come back later.

Updated

Use it from code or AI

The rules as an endpoint: send a board and whose turn it is, and get back the legal moves (with the discs each one turns over), who must pass, and whether the game is over. Add a move and it is played first, returning the board after it. The board is 64 characters, a1 to h8 row by row — b for black, w for white, . for empty. With no board, the starting position is used.

  • GET /api/reversi/movesThe legal moves in the starting position (JSON).
  • GET /api/reversi/moves?board=...........................wb......bw...........................&turn=b&move=d3Black plays d3 from the starting position: the board after it, and White's legal moves (JSON).

Machine-readable description: /api/plants/reversi