Play Connect 4 · vs Travis

You're yellow; Travis is red. Click a column to drop a piece.

Play

Tip: Tab to the board.
You

Advanced

Write getMove(state) and play a seeded, mid-game challenge. Your code runs sandboxed, and is saved in your browser.

  • Time limit: 250ms per move (timeouts forfeit the game)
  • Seeds: mid-game boards (empty-board play is solved and turns into memorisation)
  • Replay: each scenario replays so you can inspect decisions
  • Saved locally: your code persists in local storage
You (your bot) = yellow Travis = red

Implement function getMove(state) and return a column 0..6.
You’ll receive state.board (0 empty, 1 you, 2 Travis), state.validMoves, and state.timeoutMs (your per-move budget).

Replay

Back to home

Travis Defty