home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR35
/
VIM.ZIP
/
MIND.DOC
< prev
next >
Wrap
Text File
|
1993-04-14
|
5KB
|
100 lines
CODEBREAKER 1.0
APRIL 1993
KEVIN YETMAN
In the '70s, one of the most popular board games was a game called
Mastermind. The was addictive, challenging, and just plain fun. This
is why I decided to write a program to play the game.
For those of you who have played the game Mastermind and remembers
the rules, you'll find this program almost identical to the board game.
About the only changes you'll find are the black peg has been replaced
with a magenta peg so that every peg's color would have a unique first
letter. Also, the name of the game was changed to avoid any possible
copyright infringement problems.
For those of you who have not played the game, why?!?!?! :)
The rules are really quite simple. The game is based on colored pegs.
The colors are red, yellow, blue, green, white, and magenta. One
player chooses a series of four color pegs as a secret code. Duplicate
color pegs are allowed, ie, you can have two red pegs in the code. Once
the code is chosen, the other player starts guessing color pegs to try to
guess the code that the first player chose. The first player will, after
each guess, tell the other player how he did by a series of result pegs.
The result pegs are black and white. The black pegs indicate that one
of the pegs in the players guess is the correct color and in the proper
position within the guess. For example if the second peg of the code is red
and the player put a red in the second position, a black result peg would
be used. The white result pegs indicate that one of the pegs in your guess
is the right color, but is in the wrong position for the code. For example,
if red is the second color of the code and the guess had red in the third
position, a white result peg would be used. The order of the result pegs is
meaningless, ie, just because the leftmost result is black does not mean that
the peg in the left position of the guess is correct.
Game Play:
----------
When you decompress this file, you'll find this document file and mind.exe.
This is the program you need to run to play the game. A simple rules screen
will display. It will also warn you that you need a color monitor. VGA or
EGA is recommended as 16 color mode is needed. If you do not have a monitor
of this type, press <ESC> and the program will return to the MS-DOS prompt.
Pressing any other key will start the game.
The screen will draw a computerized version of the Mastermind game board,
a help window to show the result peg values, a menu window for choosing your
colors, and a window to show you your current guess. The cursor will be at a
prompt saying "Your Choice:". You will come to this prompt to pick each
color of each guess.
As you pick colors, the game will put the color pegs in the current guess
window. If you make an error, you can press the backspace key to go back.
Each time you press backspace, a color peg in the current guess window will
disappear. After entry of the fourth peg, it will prompt you "Correct?". If
you enter 'Y' or 'y', it will put the current guess onto the board and display
the result pegs. The result pegs will come up to the right of your guess.
A light blue result peg means that there is no result peg in that slot.
For example, if you have just one black result peg, there will be three light
blue ones.
There are three ways to terminate the program...winning, losing, or pressing
<ESC> at any color peg entry. You win the game by choosing the code. Four
black result pegs will display and then the code will display at the bottom
of the board. You lose the game by filling in all the guesses without
guessing the code. If you lose the game the correct code is displayed at the
bottom of the game board.
At the end of the game, you will be prompted to "Play again?" in the
current guess window. If you press 'Y' or 'y' the screen will redraw, a
new code chosen by the computer, and the game will start again.
When you press 'N' or 'n' at "Play again?" a special surprise will display
on the screen. When your done admiring the handy work of the surprise, press
any key to return to the MS-DOS prompt.
Other Information:
------------------
This game is made available on a Shareware basis. You are free to
distribute this to anyone you'd like, provided this document file goes
with it.
If you enjoy this game, I would welcome, and appreciate, any donation
you would care to send. You may send it to:
Kevin Yetman
240 Shawsheen Avenue
Wilmington, MA 01887-2223
I would also welcome any comments and constructive criticism at the
address above.
If you prefer, you can send me comments and/or critiques on the Internet
at nin15b66@merrimack.edu
Thank you for your interest in this game! I hope you enjoy it, as much as
I enjoyed writing it!