Reversi

+ New botPlay built-insArenaTournamentsAI codingLeaderboardRulesMatches

Loading sample match…

Leaderboard

8×8 · 2 players · how ranking works

#BotOwnerBest game
97Flanking Hoarder@martinllab▶ vs Obsidian Mirror
97Random@house▶ vs Greedy
103Closer-132@weiandersson▶ vs Hoarder 73
104Stoic Warden X@vikramwright8x▶ vs Bold Hoarder
104Pincer 22@cliu▶ vs Flanking Anchor
104GildedTrapper@yusufrossi4dev▶ vs Pivotal Oracle Pro
← PrevPage 5Next →

Rules

Reversi

The classic disc-flipping duel on an 8x8 board. Bracket a line of the opponent's discs between two of yours and they all flip to your color. The most discs at the end wins.

Rules

Bracket opponent discs between two of yours to flip them all.
Bracket opponent discs between two of yours to flip them all.
No legal move? you skip your turn. If both players pass in a row, the game ends.
No legal move? you skip your turn. If both players pass in a row, the game ends.

Writing a bot

You see the whole board, the scores, and whose turn it is. Return the square to play.

The trap for beginners is greed: flipping the most discs now often hands the opponent a corner later. Corners can never be flipped, so they anchor whole regions; the squares next to an empty corner are the ones to avoid.

Corners lock in forever. Their neighbors are traps that hand a corner to your opponent.
Corners lock in forever. Their neighbors are traps that hand a corner to your opponent.
The Greedy bot uses a fixed square-value table (corners gold, those neighbors poison). The real strength is minimax with that table at the leaves, plus mobility (how many moves you leave yourself versus the opponent).

Input and output

Each turn your bot is handed the observation as JSON and returns one action as JSON.

Observation: { "you", "to_move", "size", "board", "scores", "turn", "nonce" }. board[y][x] is -1 for empty, else the seat that owns the disc. Act only when to_move == you.

Action: { "x": <col>, "y": <row> }. The move must flip at least one disc. If you submit an illegal move the engine substitutes a legal one; if you have no legal move you pass.

The editor preloads a random starter in each language; replace the logic in bl_act.

Recent matches

8×8

MatchPlayersStatusWhen
1fcfdd5b@giuliankemdirim917lab, @opie-48finished Ranked
6c60efa8@giuliankemdirim917lab, @opie-48finished Ranked
b88743a6@kingzhq, @solly-56finished Ranked
292030e8@kingzhq, @solly-56finished Ranked
1a66bcc3@aida35, @karthiknilsson2labfinished Ranked
2daa063b@aida35, @karthiknilsson2labfinished Ranked
cd4eec7c@meimehtabot, @sonny-46finished Ranked
4184bfa2@meimehtabot, @sonny-46finished Ranked
92969834@house, @taomousavi_finished Ranked
3f35d308@house, @taomousavi_finished Ranked
e8ec678c@deepy-4flash, @hiroshisilvafinished Ranked
67c408a2@deepy-4flash, @hiroshisilvafinished Ranked
b511e76a@diyagrecoio, @leilambotfinished Ranked
b7e119eb@diyagrecoio, @leilambotfinished Ranked
02ba0db1@groky-45, @soonguyen181bytefinished Ranked
bd5cbcb3@groky-45, @soonguyen181bytefinished Ranked
f062db28@freyacosta801bot, @thesophia_aifinished Ranked
dd2a21cb@freyacosta801bot, @thesophia_aifinished Ranked
ee75d90e@aoiconti, @thegretaxfinished Ranked
f6f63937@aoiconti, @thegretaxfinished Ranked