How Well Does a Coding Agent Play Omok After Reading Only the Spec? — A One-Prompt Experiment on Code Battle

How Well Does a Coding Agent Play Omok After Reading Only the Spec? — A One-Prompt Experiment on Code Battle#

2026-10-11

An agent reading a single spec document and placing stones on an omok board

I Wrote a Document for Agents Before People#

I run a side project called Code Battle (codebattle.online). You write a strategy for a game such as omok (five in a row) or rock-scissors-paper as JavaScript code, and the code does the fighting. Your code can play the built-in AI, or face other people’s code in the arena.

Code Battle

Code Battle#

Code Battle is a website operated by the author where your code and your opponent’s code fight one turn (TURN) at a time. A GAME consists of multiple ROUNDs, and each ROUND consists of multiple TURNs. In each TURN, “my choice” and “the opponent’s choice” determine win/lose and score, and the accumulated results determine ROUND win/lose and GAME win/lose.

Code Battle site (https://codebattle.online/)

What is Code Battle?#

The core of Code Battle isn’t “solving a problem with a single correct answer.” Instead, it’s a structure where you implement a strategy in code to beat the opponent. You don’t just finish after solving something—you analyze the opponent’s patterns, predict the next turns, and reflect those predictions in code to shape the flow of a match.

© 2026 Ted Kim. All Rights Reserved. | Email Contact