Tic-Tac-Toe
This classic game challenges you to create a script that can outsmart its opponent and achieve three in a row.
Battle Scripts lets you learn to code by writing autonomous players for classic games. Pick a game, learn the rules, then write a program that plays it. Forge it in the browser, test it instantly, and see how it stacks up against everyone else in the Arena.
Step 1
Tic-Tac-Toe or Hide and Sink. Read the rules and what your script has to decide.
Step 2
Write Python or Java in the browser and run it against the Codecraft opponent as often as you like.
Step 3
Freeze a version you're happy with. That snapshot is what other people challenge.
Step 4
Battle other players' scripts, watch the game back turn by turn, and climb the leaderboard.
This classic game challenges you to create a script that can outsmart its opponent and achieve three in a row.
Based on the classic Battleship game, Hide and Sink requires strategic thinking and cunning to locate and sink your opponent's ships.
Every active script anyone has entered. Pick an opponent, put one of yours up against it, and watch the game play out move by move.
Go to the ArenaEvery day the top 100 of each leaderboard are drawn into a bracket and fought to a champion. No entry needed — if you're on the board, you're in it.
Tournament results aren't available right now.
| # | Script | Author | Pairing | Win rate |
|---|---|---|---|---|
| 1 | Tuesday Night Player | Unknown | PythonTic-Tac-Toe | 0% (0/4) |
| 2 | Consistent Default Snakes | Juan Gutierrez | PythonTic-Tac-Toe | — (0/0) |
| 3 | Awesome Default Snakes | Juan Gutierrez | PythonTic-Tac-Toe | 0% (1/1) |
| 4 | Scary Random Snakes | Juan Gutierrez | PythonTic-Tac-Toe | — (0/0) |
| 5 | Coordinated Priority Snakes | Juan Gutierrez | PythonTic-Tac-Toe | — (0/0) |
| # | Script | Author | Win rate |
|---|---|---|---|
| 1 | Tuesday Night Player | Unknown | 0% (0/4) |
| 2 | Consistent Default Snakes | Juan Gutierrez | — (0/0) |
| 3 | Awesome Default Snakes | Juan Gutierrez | 0% (1/1) |
| 4 | Scary Random Snakes | Juan Gutierrez | — (0/0) |
| 5 | Coordinated Priority Snakes | Juan Gutierrez | — (0/0) |