Skip to content

SarahLucke/Mastermind_Qt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mastermind Game

This game was originally a board game from 1970.

The player has to guess a number of five digits. After each guess the player gets hints to determine which digits are correct.

  • Green stands for a number you guessed correctly and put in the right spot in the number array.
  • Orange stands for a number you guessed correctly, but is not in the right spot of the number array.
  • Red stands for a number you guessed that doesn't belong in the number array.

The two modes, easy and hard, differentiate in the way, the results are shown. In easy mode, the color is directly associated with the numbers, while in hard mode, this direct association is missing. In hard mode, the player only gets feedback, how many numbers in the current guess belong to each of the three categories, but he doesn't get a hint, which.


Implementation

The game was written with C++ and Qt. The play mode (hard/easy) can be selected in the upper dropdown box.

screenshot mastermind

screenshot mastermind

Building the project

In Qt Creator, open the project file src/NumberGuess.pro or build the game from commandline:

sudo apt-get install qt5-default
cd NumberGuess/
mkdir bin
cd bin/
qmake ../NumberGuess.pro
make && make clean
./NumberGuess

License

GNU General Public License 3

About

The number guessing game Mastermind using C++ and Qt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published