FreeBSD Manual Pages
MASTERMIND(6) Game Manual MASTERMIND(6) NAME mastermind - A console-based color/number guessing game SYNOPSIS mastermind [-v | -h | -n] DESCRIPTION mastermind is a color guessing game that runs in the console. Players need to guess a color combination randomly generated by the computer within a limited number of attempts. The game uses 8 different colors, and players need to guess 4 unique colors and their correct order. OPTIONS -v Displays version information -h Displays help information -n Uses numbers instead of colored blocks to display GAME RULES The computer randomly generates a sequence of 4 different colors. Players have 10 chances to guess this sequence. After each guess, the game provides feedback: + Indicates a correct color in the correct position - Indicates a correct color in the wrong position COLORS The game uses the following 8 colors: 1. Red 2. Blue 3. Green 4. Yellow 5. Purple 6. Orange 7. White 8. Cyan CONTROLS Players select colors by inputting numbers 1-8. For example, inputting "1234" selects red, blue, green, and yellow. Inputting 'r' or 'R' can switch the display mode between colored blocks and numbers. Inputting 'q' or 'Q' can quit the game at any time. GAME INTERFACE The game interface is presented in the console using ASCII characters and ANSI color codes. The interface includes: - Color guide - Guess history - Feedback symbols EXAMPLES Start a new game: mastermind View version information: mastermind -v View help information: mastermind -h Use number mode: mastermind -n AUTHOR Qiang Guo <bigdragonsoft@gmail.com> COPYRIGHT Copyright (C) 2024 BigDragonSoft (bigdragonsoft.com) BUG REPORTS If you find any errors or have suggestions for improvement, please visit the project's GitHub page to submit issues: https://github.com/bigdragonsoft/mastermind Version 0.1.0 September 2024 MASTERMIND(6)
NAME | SYNOPSIS | DESCRIPTION | OPTIONS | GAME RULES | COLORS | CONTROLS | GAME INTERFACE | EXAMPLES | AUTHOR | COPYRIGHT | BUG REPORTS
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=mastermind&sektion=6&manpath=FreeBSD+Ports+15.0>
