Skip to content

daorejuela1/mastermind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mastermind - Python implementation

Check out our version of the game Mastermind built with Python!

This is a project for Holberton School Hack Day.

Initial requirements ✔️

  • Python (>= 2.7)
  • Tkinter GUI library
  • Xming Server

To install Tkinter in the terminal (Linux):

$ sudo apt-get install python3-tk

To configure the graphic interface environment check the official documentation for Xming X Server.

Downloading and Installation ⚙

To clone the repository, navigate to the directory where your version will live. Type in the following:

$ git clone https://github.com/daorejuela1/mastermind.git

Usage

To execute the game:

$ ./main.py

The Game 😎

set_size

Object of the Game

To outsmart your opponent with a clever code or great guesswork.

Rules

Your aim is to crack the code in the least number of attempts.

You get 8 attempts at breaking the code. If you can’t discover it by then then you lose that game. But that’s ok. You can get a new code and try again.

set_game

The Code Breaker code is made up of 4 to 6 colours from the 8 available colours. To win you must place the right marbles in the right order. After each attempt you will be told how you went.

  • White marble - Means that there is one of your marbles in the code but not in the right place.
  • Black marble - Means that there is one of your marbles in the code and in the right place.

The answer marbles are not in any particular order and don't line up with your code marbles.

Made with ❤️ by

About

Hackday Mastermind game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages