Basically, player A and player B each think of (write down) a number, the
target. Then A tries to guess B's number while B tries to guess A's number.
A number, whether it's a guess or a target, consists of four digits (hence
the devilishly clever name of the game) with no digit appearing more than
once in the number. When A makes a guess, B tells A the score of the guess.
The score consists of two integers. The first integer is the count of the
digits in the guess which are in the right place, that is, in the same place
in the guess as in the target. The second integer of the score is the count
of the digits in the guess which are in the wrong place, that is, in a different
place in the guess than in the target. The players take turns guessing until
one of them guesses the target (i.e., gets a score of 4 in the right place
and 0 in the wrong place). Then the other player continues making guesses
until he gives up or guesses the target. Obviously, the player who gets the
target in the fewest guesses is the winner of the game.
| Guesser
|
Scorer
|
The program displays its guesses in the Guesser's scoreboard. You score its last guess by typing two digits into the text field at the bottom and pushing the Score button. Then the program makes its next guess unless either the last guess was correct or the scores are inconsistent. If you make a mistake scoring, push the Retract button to back up to the previous guess. If you want the program to guess a number, but you are too lazy to score it yourself, and you trust it not to cheat, then you set the target for automatic scoring of its guesses by typing a four digit number into the text field at the top and pushing the Guesser's New button. Pushing the New button when the target field is empty starts the program guessing an unknown (except by you) number. If you don't even want to think up a number push the Random button to get the program to supply a target.
The Java and Macintosh versions of the game were designed and programmed by Hank Dolben who learned the pencil and paper version of the game from Mark Widholm.
This program is free. It may be copied for noncommercial distribution.
It may not be sold.