TLDR: I built a five-in-a-row engine using Rust, WebAssembly, and bitboards, and it was a wild ride. Play against it here or check out the source code here.

In my youth, I used to play five-in-a-row a lot. We played at home and at school, during class, during breaks. Later, at some point, I was seriously interested in building my own chess engine, so I was familiar with the concepts of game trees, evaluation functions, and search algorithms. With this background, I thought solving five-in-a-row would be a nice little weekend project.

Two weeks and countless late nights later, I can proudly say that I have a working engine, but it's been a helluva ride. This article is a cautionary tale of what happens when ambition and overconfidence meet inexperience. As the classic Warlords 3 saying goes, "Enthusiasm without ability can take you precisely this far".