Connect4

At the York Code Dojo, we spent an evening writing a connect 4 player. We pitched the results against each other to see which could play the best.

This one is in C++, with a little Windows UI to nicely show the board. The AI uses a fairly standard min/max search algorithm.

On Github in the file Game.cpp

This wasn’t the first min/max search I’d done, so I was able to put it together reasonably quickly. I still learned some things, and found a really nice library for making Rest calls from C++: Embedded Rest

Connect4

comments powered by Disqus