For our final project, we recreated a board game called Mastermind onto a breadboard. In this game there are two players, the code breaker and code maker, where the code maker has to set up a color combination that the code breaker has to guess correctly within a certain number of tries in order to win the game. Our project hardware consists of three physical buttons for user input and three LED’s for program output. The first button which is red is used to confirm the user’s selection after they have chosen the color that they want for each individual LED. The second button which is blue, helps the user choose the LED to be changed. Finally the third button, which is the green button, changes the color of the chosen LED everytime it is pressed. In this version, the players will be able to change three LEDs which have an option of 6 different colors to choose from. We also utilized internet connection by implementing a way for the code maker and code breaker to set the LEDs colors using an html link instead of using the physical buttons attached to the board.

How to play Mastermind

Helpful Youtube video which outlines how to play the game Mastermind.

Mastermind game on a breadboard

This video taken by Matthew Vogel outlines how the game is played on the breadboard.

Mastermind Breadboard Wiring

Electrical schematic diagram of photon wiring.