To the Mastermind in the Console page on my portfolio website
The goal of the game is to crack the code that the computer randomly generates at the start of the game. You have seven attempts to do so.
The code consists of four balls, each of which has one of six possible colors. Red and white pins help you crack the code.
A red pin means that a color is correct and in the correct position. A white pin means that a color is correct but not in the correct position.
Clone the repository. Open a terminal in that folder and type python mastermind.py
. The game will start. Type /help
to display a comprehensive game guide. After reading the guide, you’ll be ready to play!