You can build a Connect Four solver in software, but it won’t be all that much fun. Now apply that same automation to a 15-foot-tall plywood version of the classic board game and you’ve just created a smile-making-machine for everyone within eyesight. Behold the Mono-Purpose Automated Robot Versed In Connnect4 (Marvin) which Ben and Jonathan dreamed up on their way home from Maker Faire last year, and made into their exhibit this year.
On the physical side of things they got really creative in lifting the discs and sorting them into the column chosen by the software brain of the game. A chain travels along one side with fingers every few feet. The fingers travel along the channel, lifting the discs. Those fingers are a couple of bolts, with some metal filler, all epoxied into one solid unit.
At the top of the disc elevator, and at the top position of each column in the gaming board, there are IR reflectance sensors which send feedback to the Arduino that drives the hardware. This proved a major issue during setup the day before the Faire. The reflectance sensors are just blasting out IR and not using a carrier signal. In direct sunlight, the detector was in a constant state of being tripped. After some trial and error, the logic for the sensors was flipped to detect the absence of sunlight by placing black plastic behind that top row of the board and putting duct tape over the IR emittors.
There’s a router and laptop rolled into the system. The Arduino makes an HTTP request to software on the laptop. In addition to determining where the next move should be made, the laptop is connected to a large screen which shows the current state of the gaming board. This is a head-to-head, human versus machine game. The human player drops their discs from the top of the board using a paint roller that hooks into a hole at the center of the disc. This way the player’s disc passes by the sensors, triggering the machine’s next move.
It’s a clever build and due to the sheer size it’s pretty awesome they were able to get it to the Faire from Philadelphia. Don’t miss the video after the break that shows off the fun and excitement of this gaming giant.
How to win Connect Four. https://gizmodo.com/heres-how-to-win-every-time-at-connect-four-1474572099
Any final tally on players vs robot?
Humans won 9 games, MARVIN won over 40 games. The first human winner was an 8-year old boy. He was amazing! You would have thought he’d just single handedly won the Super Bowl.
It’s great to see their creation featured here- they have been our neighbors in the “Young Makers” are of the Faire for the past few years, and we always enjoy discovering what awesomely cool (and LARGE) project they brought with them each year. They are the first thing folks see as they climb the hill, and whether it be a giant connect-4, rock climbing wall, or other fantastic exhibit. They’re all grown up now, It’s now time for them to “Look at colleges”, (and I’m sure there are colleges looking at THEM). We wish them luck with that and all of their future endeavors. Make on!
I like the Connect 4 at OMSI (Oregon Museum of Science and Industry) where you play the game using industrial robots.