
Python Mastermind
A downloadable game for Windows
This is based on the boardgame Mastermind (If you haven't already guessed!) and it is not at all my original idea. I decided to code a simple boardgame in Python to challenge myself and I have decided to share it!
A random colour code is generated and you, as the codebreaker, need to figure it out. After each guess, the "Score answer" button is used to submit your answer for the game to grade - A is rewarded for each correct colour that is also in the matching spot in the code, and a
for each colour used in the code, but not on the corresponding place.
Left clicking on the pins on the right hand side allows you to select them, they can then be placed into the holes of the active guessing row, also by left clicking. Right click to remove the pin.
Before starting a game, you can choose what conditions the code must adhere to - i.e. allow a colour to be used multiple times in the code and/or allow the code to contain holes. (Holes are effectively a ninth colour). This will also govern what code you can guess: For eg. if the code cannot contain holes, your guess can't either.
I hope you enjoy this game! (Oh - and also my menu music :D)
Status | Released |
Platforms | Windows |
Author | King_Wes |
Genre | Strategy |
Tags | Board Game, Singleplayer, Synthwave |
Average session | A few minutes |
Languages | English |
Inputs | Mouse |
Download
Install instructions
All of the code and resource files are included in the .exe - it can simply be downloaded and run.
Leave a comment
Log in with itch.io to leave a comment.