-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from hjicks/main
preview on README.md
- Loading branch information
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |