Skip to content

Commit

Permalink
Merge pull request #2 from hjicks/main
Browse files Browse the repository at this point in the history
preview on README.md
  • Loading branch information
Mahdi-HSh authored Jun 2, 2023
2 parents d2c05a1 + 49c09ce commit 7c893e4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# MasterMind-Console
Number guessing game in C++

[![demo](https://asciinema.org/a/588659.svg)](https://asciinema.org/a/588659)

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.

WARNING: Code may not be compatible with old C++ compilers, such as GCC v5 or older.
Also, you need to use C++11 or newer versions.

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

0 comments on commit 7c893e4

Please sign in to comment.