Write an AI, in JS
AIs face off
In the end, every AI faces off to decide the strongest Reversi AI of all.
Reversi is such a simple game that even beginners can reach an AI "stronger than themselves" in no time.
In "Build a Reversi AI," you use the programming language JavaScript to create a "Reversi AI" stronger than yourself. At the end, each Reversi AI is pitted against the others to see whose is strongest.
It may sound hard, but Reversi is such a simple game that in about 1–2 hours you can build, all by yourself, a Reversi AI stronger than "you".
Make your board-game intuition explicit as an evaluation function.
Time spent putting your own "way of thinking" into words through a programming language.
When a move in Reversi feels like "I want to play here," why does it feel that way? Corners are strong, edges are risky, you want to cut down your opponent's options — one by one, you turn those instincts into numbers as board-evaluation values and write them out as a function.
Just changing the numbers changes how strong the AI is. Through trial and error, the "gut feeling" inside you is gradually replaced by executable logic.
Even participants with no programming background can enter the AI-vs-AI showdown by the end of the session.
They get this far with nothing but a worksheet and a minimum of JavaScript.
Quoted verbatim from post-workshop surveys.
Take on the actual Reversi AI right in your browser.
We publish the whole package: how to read the code, what the board-evaluation values mean, and how to build the AI.
In the demo app published by Accel Kitchen (加速キッチン), you can take on the very Reversi AI built in the workshop, with your own hands. The code is right there to read, so you can see exactly which evaluation function drives the AI.
Participants work through it hands-on, alongside a paper worksheet.
They write in evaluation values, reflect them in code, and record the AIs' match results.
Since 2018, we've run it in all kinds of settings — schools, universities, companies, online camps, and more.