Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preview on README.md #2

Merged
merged 1 commit into from
Jun 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.