Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 676 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 676 Bytes

MasterMind-Console

Number guessing game in C++

demo

It's a simple game. Goal is to guess a number. Length of number is received from the user, and number of guesses depends on the length. If the length is less than 10, then number of user chances is equal to length. Otherwise, user have 9 chances to guess the number.

Main functionality of code is based on working with strings, so we included string library. Prototype of main game functions added at the top of the code for better code readability.

Please note that game uses C++ 11, compilers using older standards fail to compile this code.