Arduino TeamApril 27th, 2021

playing connect four against a mini golfing ai opponent hyperedge embed

Have you dreamed of combining the two incredible activities putt-putt and Connect Four together into the same game? Well one daring maker set out to do just that. Bithead’s innovative design involves a mini golf surface with seven holes at the end corresponding to the columns. The system can keep track of where each golf ball is with an array of 42 color sensors that are each connected to one of seven I2C multiplexers, all leading to a single Arduino Uno

The player can select from six distinct levels of AI, all the way from random shots in the dark to Q Learning, which records previous game-winning moves to improve how it plays over time. It can putt by first loading a golf ball into a chamber and then spinning up a pair of high-RPM motors that launch it. For the human player, there is a pair of dispensers on the left that give the correct color of ball. 

playing connect four against a mini golfing ai opponent 1 hyperedge embed

The entire system runs on an Intel NUC that hosts the game which was written in C#. There’s a large 22″ touchscreen at the front that is mounted at eye-level for easy interactions. Although it took Bithead nearly 18 months and $3,500, the end result is spectacular.

Be sure to check out his great write-up, which has a couple of demonstration videos and a build log. 

This post was first published on: Arduino Blog