Sha256: 88f5dceb034b9f452db7b59a5e6ed35cdb3649b4a779db951fcc011cbd4df7c5

Contents?: true

Size: 1.31 KB

Versions: 3

Compression:

Stored size: 1.31 KB

Contents

                                REVERSE
               CREATIVE COMPUTING  MORRISTOWN, NEW JERSEY



REVERSE -- A GAME OF SKILL

DO YOU WANT THE RULES? YES

THIS IS THE GAME OF 'REVERSE'.  TO WIN, ALL YOU HAVE
TO DO IS ARRANGE A LIST OF NUMBERS (1 THROUGH 9 )
IN NUMERICAL ORDER FROM LEFT TO RIGHT.  TO MOVE, YOU
TELL ME HOW MANY NUMBERS (COUNTING FROM THE LEFT) TO
REVERSE.  FOR EXAMPLE, IF THE CURRENT LIST IS:

2 3 4 5 1 6 7 8 9

AND YOU REVERSE 4, THE RESULT WILL BE:

5 4 3 2 1 6 7 8 9

NOW IF YOU REVERSE 5, YOU WIN!

1 2 3 4 5 6 7 8 9

NO DOUBT YOU WILL LIKE THIS GAME, BUT
IF YOU WANT TO QUIT, REVERSE 0 (ZERO).


HERE WE GO ... THE LIST IS:

 6  7  5  4  9  8  1  2  3 

HOW MANY SHALL I REVERSE? 5

 9  4  5  7  6  8  1  2  3 

HOW MANY SHALL I REVERSE? 9

 3  2  1  8  6  7  5  4  9 

HOW MANY SHALL I REVERSE? 4

 8  1  2  3  6  7  5  4  9 

HOW MANY SHALL I REVERSE? 8

 4  5  7  6  3  2  1  8  9 

HOW MANY SHALL I REVERSE? 3

 7  5  4  6  3  2  1  8  9 

HOW MANY SHALL I REVERSE? 7

 1  2  3  6  4  5  7  8  9 

HOW MANY SHALL I REVERSE? 4

 6  3  2  1  4  5  7  8  9 

HOW MANY SHALL I REVERSE? 6

 5  4  1  2  3  6  7  8  9 

HOW MANY SHALL I REVERSE? 5

 3  2  1  4  5  6  7  8  9 

HOW MANY SHALL I REVERSE? 3

 1  2  3  4  5  6  7  8  9 

YOU WON IT IN 10 MOVES!!!


TRY AGAIN (YES OR NO)? NO

O.K. HOPE YOU HAD FUN!!

Version data entries

3 entries across 3 versions & 1 rubygems

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