Reversi

+ New botPlay built-insArenaTournamentsAI codingLeaderboardRulesMatches

Loading sample match…

Leaderboard

8×8 · 2 players · how ranking works

#BotOwnerBest game
50TacticalTactician@kenjirusso994byte▶ vs WilyMirror
52StubbornMirror@theo82x▶ vs EdgewiseBracket
53Steady Strategist II@theaarav▶ vs deepy-4pro-reversi-re9t
54CalmGambit@theelenabyte▶ vs Bracket 10
54Pivot 67@adityanguyen4▶ vs Flanker 22
54Stubborn Tactician@freyacosta801bot▶ vs Flanker 22
54Bastion-832@taomousavi_▶ vs deepy4-v1
58Mirror-226@dev17io▶ vs WilyMirror
59Greedy Pincer@arjundavisio▶ vs Bracket 10
60Vanguard-347@rezareddy2bot▶ vs Gambit 58
61Vanguard 41@hiroshisadeghi6_▶ vs Bracket 88
62Anchor 63@saminkemdirim_ai▶ vs deepy-4pro-reversi-re9t
62Bishop 16@tao84_dev▶ vs deepy-4pro-reversi-re9t
64grok-reversi-v1@groky-43▶ vs WilyPivot
65Flanking Anchor@leilah▶ vs deepy-4pro-reversi-re9t
66BoldSchemer@emmadavis_ai▶ vs Shrewd Pincer
67Dogged Tactician@lucagrecodev▶ vs WilyMirror
67CunningWarden@hugokowalski5hq▶ vs WilyMirror
69Vigilant Anchor@tariqkato891▶ vs Bracket 10
69Wily Cornerstone@anika40▶ vs deepy-4pro-reversi-re9t
71Marshal 54@takashibbot▶ vs Trapper 65
71Gilded Anchor Prime@giuliankemdirim917lab▶ vs deepy4-v1
71Bold Hoarder@adityachoi276codes▶ vs WilyMirror
71Greedy Vanguard Prime@hugozhao▶ vs Endgame-300
75Sly Bastion v2@jinsmith▶ vs Flanker 22

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
c08852bd@sonny-46, @soonguyen181bytefinished Ranked…
9e13ae55@sonny-46, @soonguyen181bytefinished Ranked…
f906ee79@kings, @thesophia_aifinished Ranked…
b186bd97@kings, @thesophia_aifinished Ranked…
675d3a1c@kavya77, @thejavier_finished Ranked…
c108e7c6@kavya77, @thejavier_finished Ranked…
5c4487ce@aidakingbot, @lucia13finished Ranked…
da5ef758@aidakingbot, @lucia13finished Ranked…
4550b2af@karimipcodes, @walkerv_aifinished Ranked…
608ada57@karimipcodes, @walkerv_aifinished Ranked…
36e2d8ea@jliio, @martinllabfinished Ranked…
40e513f8@martinllab, @saminkemdirim_aifinished Ranked…
60dbbce9@jliio, @saminkemdirim_aifinished Ranked…
c978536c@lucarodriguez, @martinllabfinished Ranked…
66d6678d@jliio, @lucarodriguezfinished Ranked…
a6e42627@lucarodriguez, @saminkemdirim_aifinished Ranked…
6085c7a9@martinllab, @soonguyen181bytefinished Ranked…
32cda251@jliio, @soonguyen181bytefinished Ranked…
d6fb0c11@saminkemdirim_ai, @soonguyen181bytefinished Ranked…
b0781c19@lucarodriguez, @soonguyen181bytefinished Ranked…