Sha256: 38e41393c8de82560b1038bdec3ef1a3c903ef868c433c2a2629f4bfd4c23ea3

Contents?: true

Size: 1.85 KB

Versions: 3

Compression:

Stored size: 1.85 KB

Contents

                            GAME OF EVEN WINS
               CREATIVE COMPUTING  MORRISTOWN, NEW JERSEY


DO YOU WANT INSTRUCTIONS (YES OR NO)? YES

THE GAME IS PLAYED AS FOLLOWS:

AT THE BEGINNING OF THE GAME, A RANDOM NUMBER OF CHIPS ARE
PLACED ON THE BOARD.  THE NUMBER OF CHIPS ALWAYS STARTS
AS AN ODD NUMBER.  ON EACH TURN, A PLAYER MUST TAKE ONE,
TWO, THREE, OR FOUR CHIPS.  THE WINNER IS THE PLAYER WHO
FINISHES WITH A TOTAL NUMBER OF CHIPS THAT IS EVEN.
THE COMPUTER STARTS OUT KNOWING ONLY THE RULES OF THE
GAME.  IT GRADUALLY LEARNS TO PLAY WELL.  IT SHOULD BE
DIFFICULT TO BEAT THE COMPUTER AFTER TWENTY GAMES IN A ROW.
TRY IT!!!!

TO QUIT AT ANY TIME, TYPE A '0' AS YOUR MOVE.

THERE ARE 17 CHIPS ON THE BOARD.
COMPUTER TAKES 4 CHIPS LEAVING 13 ... YOUR MOVE? 4
THERE ARE 9 CHIPS ON THE BOARD.
COMPUTER TAKES 4 CHIPS LEAVING 5 ... YOUR MOVE? 4
THERE IS 1 CHIP ON THE BOARD.
COMPUTER TAKES 1 CHIP.
GAME OVER ... YOU WIN!!!

THERE ARE 19 CHIPS ON THE BOARD.
COMPUTER TAKES 1 CHIP LEAVING 18 ... YOUR MOVE? 4
THERE ARE 14 CHIPS ON THE BOARD.
COMPUTER TAKES 4 CHIPS LEAVING 10 ... YOUR MOVE? 4
THERE ARE 6 CHIPS ON THE BOARD.
COMPUTER TAKES 4 CHIPS LEAVING 2 ... YOUR MOVE? 4
 4 IS AN ILLEGAL MOVE ... YOUR MOVE? 3
 3 IS AN ILLEGAL MOVE ... YOUR MOVE? 2
GAME OVER ... YOU WIN!!!

THERE ARE 17 CHIPS ON THE BOARD.
COMPUTER TAKES 4 CHIPS LEAVING 13 ... YOUR MOVE? 4
THERE ARE 9 CHIPS ON THE BOARD.
COMPUTER TAKES 3 CHIPS LEAVING 6 ... YOUR MOVE? 4
THERE ARE 2 CHIPS ON THE BOARD.
COMPUTER TAKES 2 CHIPS.
GAME OVER ... YOU WIN!!!

THERE ARE 17 CHIPS ON THE BOARD.
COMPUTER TAKES 4 CHIPS LEAVING 13 ... YOUR MOVE? 4
THERE ARE 9 CHIPS ON THE BOARD.
COMPUTER TAKES 3 CHIPS LEAVING 6 ... YOUR MOVE? 4
THERE ARE 2 CHIPS ON THE BOARD.
COMPUTER TAKES 1 CHIP LEAVING 1 ... YOUR MOVE? 1
GAME OVER ... I WIN!!!

THERE ARE 15 CHIPS ON THE BOARD.
COMPUTER TAKES 3 CHIPS LEAVING 12 ... YOUR MOVE? 0

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
basic101-0.4.0 test/integration/tests/basic_computer_games/evenwin2.output
basic101-0.2.0 test/integration/tests/basic_computer_games/evenwin2.output
basic101-0.1.0 test/integration/tests/basic_computer_games/evenwin2.output