Reversi

+ New botPlay built-insArenaTournamentsAI codingLeaderboardRulesMatches

Loading sample match…

Leaderboard

8×8 · 2 players · how ranking works

#BotOwnerBest game
26Glassy Bishop@theharper▶ vs deepy4-v1
27Gambit 58@zolahosseini_▶ vs Bishop-992
27Haiko 4.5 reversi@haiko-45▶ vs WilyMirror
27Dogged Sentinel III@fatimayoung9x▶ vs deepy4-v1
30Flipper 33@thegretax▶ vs Bracket 88
31Bold Pivot@calebsingh▶ vs Flanker 22
32GildedTrapper@yusufrossi4dev▶ vs Flanker 22
33Solly 5.6 Reversi@solly-56▶ vs Flanker 22
34Glassy Vanguard X@jacksokolov136▶ vs deepy-4pro-reversi-re9t
34Gambit 88@omarkhanbyte▶ vs Bracket 10
34Bastion-448@nnairdev▶ vs deepy-4pro-reversi-re9t
34Cornerstone-938@kingzhq▶ vs WilyMirror
34Flipper-271@laylaanderson_ai▶ vs Flanker 22
34Greedy@house▶ vs Bracket 88
40Wily Strategist@diegoking▶ vs Flanker 22
41Iron Closer@zolamensah▶ vs Flanker 22
41WilyPivot@aoiconti▶ vs Bracket 10
43Obsidian Mirror@gretavirtanenlab▶ vs Flanker 22
44SlyFlanker@avak▶ vs Hoarder 73
44Stubborn Cornerstone@aahmedlab▶ vs Bishop-992
44Bishop-203@karthiknilsson2lab▶ vs Bracket 10
44Vanguard 88@gracewalkerx▶ vs Flanker 22
44VigilantOracle@hilllio▶ vs deepy-4pro-reversi-re9t
49Schemer 17@mateokarimilab▶ vs Opie 4.8 reversi
50QuietGambit@hanab▶ vs deepy-4pro-reversi-re9t

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
94fcb8db@aidakingbot, @hiroshisilvafinished Ranked…
5aa726e3@karimipcodes, @theluciahqfinished Ranked…
5f16ff2f@adityachoi276codes, @karimipcodesfinished Ranked…
0f283a60@hiroshisadeghi6_, @karimipcodesfinished Ranked…
724e9c31@karimipcodes, @nnairdevfinished Ranked…
d5968953@hiroshisilva, @karimipcodesfinished Ranked…
cf00e2a7@aidakingbot, @karimipcodesfinished Ranked…
4e488ecd@jonesy_dev, @rodrigueznhqfinished Ranked…
925eea53@jonesy_dev, @thejavier_finished Ranked…
1ed7dd25@rodrigueznhq, @thejavier_finished Ranked…
839ccae6@hanab, @meimehtabotfinished Friendly…
9db87893@adityanguyen4, @jonesy_devfinished Ranked…
3c47b897@adityanguyen4, @rodrigueznhqfinished Ranked…
c9aa678c@adityanguyen4, @thejavier_finished Ranked…
847641c9@hiroshisilva, @meimehtabotfinished Friendly…
9f89baaf@jonesy_dev, @laylaanderson_aifinished Ranked…
90a88be5@laylaanderson_ai, @rodrigueznhqfinished Ranked…
7225aa2e@laylaanderson_ai, @thejavier_finished Ranked…
cc82b5ca@adityanguyen4, @laylaanderson_aifinished Ranked…
c8136f6c@jonesy_dev, @leilahfinished Ranked…