Sha256: 235a3babba176a313d1c958a92a7e12f52b2a068a5965fedea5cc9bb4a03c500

Contents?: true

Size: 1.8 KB

Versions: 3

Compression:

Stored size: 1.8 KB

Contents

                               EVEN WINS
               CREATIVE COMPUTING  MORRISTOWN, NEW JERSEY


     THIS IS A TWO PERSON GAME CALLED 'EVEN WINS.'
TO PLAY THE GAME, THE PLAYERS NEED 27 MARBLES OR
OTHER OBJECTS ON A TABLE.


     THE 2 PLAYERS ALTERNATE TURNS, WITH EACH PLAYER
REMOVING FROM 1 TO 4 MARBLES ON EACH MOVE.  THE GAME
ENDS WHEN THERE ARE NO MARBLES LEFT, AND THE WINNER
IS THE ONE WITH AN EVEN NUMBER OF MARBLES.


     THE ONLY RULES ARE THAT (1) YOU MUST ALTERNATE TURNS,
(2) YOU MUST TAKE BETWEEN 1 AND 4 MARBLES EACH TURN,
AND (3) YOU CANNOT SKIP A TURN.



     TYPE A '1' IF YOU WANT TO GO FIRST, AND TYPE
A '0' IF YOU WANT ME TO GO FIRST.
? 1




TOTAL= 27 


WHAT IS YOUR FIRST MOVE? 3

TOTAL= 24 

YOUR TOTAL IS 3 
I PICK UP 1 MARBLES.

TOTAL= 23 

     AND WHAT IS YOUR NEXT MOVE, MY TOTAL IS 1 
? 3

TOTAL= 20 

YOUR TOTAL IS 6 
I PICK UP 1 MARBLES.

TOTAL= 19 

     AND WHAT IS YOUR NEXT MOVE, MY TOTAL IS 2 
? 1

TOTAL= 18 

YOUR TOTAL IS 7 
I PICK UP 1 MARBLES.

TOTAL= 17 

     AND WHAT IS YOUR NEXT MOVE, MY TOTAL IS 3 
? 1

TOTAL= 16 

YOUR TOTAL IS 8 
I PICK UP 3 MARBLES.

TOTAL= 13 

     AND WHAT IS YOUR NEXT MOVE, MY TOTAL IS 6 
? 2

TOTAL= 11 

YOUR TOTAL IS 10 
I PICK UP 4 MARBLES.

TOTAL= 7 

     AND WHAT IS YOUR NEXT MOVE, MY TOTAL IS 10 
? 4

TOTAL= 3 

YOUR TOTAL IS 14 
I PICK UP 2 MARBLES.

TOTAL= 1 

     AND WHAT IS YOUR NEXT MOVE, MY TOTAL IS 12 
? 4

     YOU HAVE TRIED TO TAKE MORE MARBLES THAN THERE ARE
LEFT.  TRY AGAIN.
? 3

     YOU HAVE TRIED TO TAKE MORE MARBLES THAN THERE ARE
LEFT.  TRY AGAIN.
? 2

     YOU HAVE TRIED TO TAKE MORE MARBLES THAN THERE ARE
LEFT.  TRY AGAIN.
? 1

THAT IS ALL OF THE MARBLES.

 MY TOTAL IS 12 , YOUR TOTAL IS 15 

     I WON.  DO YOU WANT TO PLAY
AGAIN?  TYPE 1 FOR YES AND 0 FOR NO.
? NO
Not numeric: "NO", try again
? 0

OK.  SEE YOU LATER.

Version data entries

3 entries across 3 versions & 1 rubygems

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