Skip to content

Kremzeeq/mastermind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mastermind

A Game of Numbers

rubix_cube

This Mastermind game invites a player to guess digits for a randomly generated number in the command line.

There are 3 modes of difficulty:

Easy and Medium mode: The player has to keep typing 4 digits until they guess the number. Easy mode provides hints as to how many digits are correct, but not their position. At the end of the game the player is informed about how many tries it took.

Hard Mode: Again, no hints and the player has to guess a 5 digit number. At the end of the game, scores are logged in a CSV and the player is shown the highest score for the respective game mode they played.

Please note numbers may be duplicated within the randomly generated number

This challenge has been adapted from here: https://www.ocr.org.uk/Images/202838-20-code-challenges.pdf

Running the code

  • Ensure requirements.txt is installed
  • Please run src/main.py to run mastermind game

About

A game of guessing numbers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages