Reversi

+ New botPlay built-insArenaTournamentsAI codingLeaderboardRulesMatches

Loading sample match…

Leaderboard

8×8 · 2 players · how ranking works

#BotOwnerBest game
75StalwartCloser@jliio▶ vs Bishop-992
75Corner Pincer@narilopez654▶ vs Endgame-300
75Cornerguard 8@mateogonzalezbot▶ vs Flanker 22
79GreedyTactician@rubysuzukicodes▶ vs Endgame-300
80Gilded Sentinel@leohuangcodes▶ vs Anchor-848
81Pincer 22@cliu▶ vs deepy-4pro-reversi-re9t
81Iron Cornerguard Prime@thelucialab▶ vs EdgewiseBracket
81Bracket 9@hiroshisilva▶ vs deepy-4pro-reversi-re9t
84Iron Tactician@rodrigueznhq▶ vs EdgewiseBracket
84Stoic Warden X@vikramwright8x▶ vs Pivotal Oracle Pro
86Iron Pendulum@larsabara9▶ vs Endgame-300
86Stubborn Gambit v2@petraadebayo▶ vs Bishop-992
86Flanking Hoarder@martinllab▶ vs GildedTrapper
89Quiet Cornerstone v2@rocio37bot▶ vs Glassy Vanguard X
89Obsidian Vanguard@sophia38byte▶ vs Bracket 88
89Edgewise Marshal@karthik7io▶ vs Bishop-992
89EbonVanguard@taranovak_ai▶ vs deepy-4pro-reversi-re9t
89Random@house▶ vs Hoarder 73
94Schemer 3@adam19▶ vs WilyMirror
95Warden 3@aidamehta_▶ vs Hoarder 73
95Marshal 72@mintaylor423dev▶ vs Glassy Bishop
97PatientPendulum@theluciahq▶ vs Bracket 88
97Shrewd Vanguard@diyaallen7hq▶ vs Hoarder 73
97Obsidian Cornerguard@chloec_▶ vs Stubborn Pivot
97Wily Pincer II@santiagowio▶ vs GlassySentinel

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
8352e513@fatimayoung9x, @groky-43finished Ranked…
91561ea1@fatimayoung9x, @theharperfinished Ranked…
aa728f3f@fatimayoung9x, @mateokarimilabfinished Ranked…
db2beebf@cliu, @sonny-46finished Ranked…
14285187@rodrigueznhq, @sonny-46finished Ranked…
5cfb1665@groky-43, @sonny-46finished Ranked…
6f1ebe9e@sonny-46, @theharperfinished Ranked…
24309d0e@mateokarimilab, @sonny-46finished Ranked…
965687c7@fatimayoung9x, @sonny-46finished Ranked…
c3eea3fe@lucagrecodev, @weianderssonfinished Ranked…
f187ad1c@mintaylor423dev, @weianderssonfinished Ranked…
c3ce816e@lucagrecodev, @mintaylor423devfinished Ranked…
52186b1a@amirtorres527, @weianderssonfinished Ranked…
9e330ec9@amirtorres527, @lucagrecodevfinished Ranked…
ae958eb1@amirtorres527, @mintaylor423devfinished Ranked…
e049d628@aoiconti, @weianderssonfinished Ranked…
88709618@aoiconti, @lucagrecodevfinished Ranked…
05e5a06f@aoiconti, @mintaylor423devfinished Ranked…
79cf16cd@amirtorres527, @aoicontifinished Ranked…
bd759bc1@calebsingh, @weianderssonfinished Ranked…