April 21, 2016

...Learn TDD with Codemanship

SC2016 Mini-Project: Connect Four Bot

Software Craftsmanship 2016 - Mini-Project

Connect Four Bot

Estimated Duration: 1-2 hours

Author: Jason Gorman, Codemanship

Language(s)/stacks: Any that can support a suitable UI


Test-drive a bot that can play Connect 4 against a human opponent.

Connect 4 is a game for 2 players, each player having round pieces of a specific colour (e.g., red or yellow). It presents players with a vertical game grid of 7 rows of 6 slots. Players take it in turns to insert one of their pieces into one of the rows at the top. That piece will then fall down the slot to occupy the lowest empty slot.

When a row is full, players can no longer insert pieces into that row.

The goal is to place four of your pieces in an unbroken row - horizontal, vertical or diagonal - before your opponent does. If no player achieves a row of 4, then the game is a draw.

To potentially facilitate bot tournaments, ensure that your bot is cleanly separated from the game and UI and can be deployed in a microservice if necessary.


Create a Connect Four tournament web server that pitches bots deployed as JSON microservices against each other.

Posted 1 year, 6 months ago on April 21, 2016