After a few failed attempts, I’ve finally managed to build a reasonably reliable Connect-4 playing NXT Robot. It talks to the PC over Bluetooth to do the thinking because it uses a minmax algorithm that needs function recursion which is not supported by NXC. And since I’m not smart enough to write my own, I had to find one on the web, credit and thanks to Keith Pomakis.