Skip to content
UniKit

Othello / Reversi

A playable Othello board with the real rules: click a square, stones are flipped along all eight directions, and the game ends when neither side can move, the larger side winning. Your opponent is either a reproducible computer player (White, same seed gives the same moves) or an explicitly labelled two-player mode; keyboard cursor, hints, undo and import from text are included.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Othello board

Click a dot to place a stone; click the board once to use the keyboard.

Move 0 · Black 2 : White 2 · Black to move · New game: Black moves first, every move must outflank enemy stones
Black
2
White
2
Empty
60
Flips
0
Legal moves
4
Passes
0

Arrow keys / W A S D move the cursor, Enter or Space places a stone

Move log

0 move(s) in total

No move recorded yet

What this tool does

  • Play a game of Othello right on the board: click a square in the human-versus-computer mode and the computer answers with a fixed evaluation function, reproducible for the same seed.
  • Play a friend on one keyboard: switch to two-player mode, Black then White, and every placement flips the whole outflanked enemy line automatically.
  • Paste an endgame into “Load a position from text” to check whether a move is legal or what the final score is.

Example

Input

Standard opening (Black first), Black clicks 4,3, opponent is the computer playing White (seed demo)

Output

Move 1 · Black 4 : White 1 · White (computer) to move
The computer plays 3,3, flipping 1 stone
Move 2 · Black 3 : White 3 · Black to move

With the same seed the computer plays exactly the same moves; only a different seed changes its choice. Two-player mode never lets the computer move.

Frequently asked questions

How do I place a stone?

Click a highlighted square (an empty cell that outflanks enemy stones), or move the cursor with the arrow keys / W A S D and press Enter. A placement flips every enemy stone that is sandwiched along one of the eight directions.

How does the computer play? Is it really an AI?

It is a one-ply picker over a fixed evaluation function: score = flips × 2 + weighted material balance after the move (corners 4, edges 2) − opponent legal moves × 3; highest score wins and ties are resolved by a seed-shuffled order. It does not search ahead, but every move is genuinely computed and reproducible rather than random.

How is the result decided, and can a turn be skipped?

The game ends when neither side has a legal move; the larger side wins and equal counts are a draw. If only one side cannot move, that turn is skipped (the “Passes” counter goes up) and the other side moves again.

Can I review or set up a position?

Yes. “Undo move” returns to the previous position (in the computer mode it also takes back the computer reply), “Restart this game” replays the same seed, and “Load a position from text” accepts eight lines of eight characters (`.` empty, `B` black, `W` white).

Keywords:othelloreversi

Related tools