GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MASTERMIND(6) Game Manual MASTERMIND(6)

mastermind - A console-based color/number guessing game

mastermind [-v | -h | -n]

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.

Displays version information
Displays help information
Uses numbers instead of colored blocks to display

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

The game uses the following 8 colors:

1. Red
2. Blue
3. Green
4. Yellow
5. Purple
6. Orange
7. White
8. Cyan

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.

The game interface is presented in the console using ASCII characters and ANSI color codes. The interface includes:

mastermind
mastermind -v
mastermind -h
mastermind -n

Qiang Guo <bigdragonsoft@gmail.com>

Copyright (C) 2024 BigDragonSoft (bigdragonsoft.com)

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

September 2024 Version 0.1.0

Search for    or go to Top of page |  Section 6 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.