Jump
~~~~

<PROGRAM: JUMP.BAS>
What you need to run the program: MS-DOS, BASIC or QBASIC, EGA or VGA

"Tests your intelligence (or perseverance)"

                                 TEED OFF
                            by Dennis Magee, Sr.

   Jump is based on a game I first encountered while traveling with my 
father. We stopped at a roadside restaurant, and I began playing a game I 
found on the table. It was a triangular block of wood with 15 holes 
drilled into it in five rows. In all the holes but one was a golf tee. The 
object of the game was to try to eliminate as many tees as possible by 
jumping across each into empty holes directly next to them. The "down 
home" standards printed on the game read:

      Leave only one, and you're a genius.
      Leave two, and you're purty smart.
      Leave three, and you're just plain dumb.
      Leave four or more, and you're an "ig-no-ra-moose."


How to Play

   When you start Jump, the playing board appears with 14 tees in place. 
The center hole is left empty -- believe me, this is the only way you can 
get down to one tee! An arrow appears under the upper-left tee. Use the 
cursor keys to move the arrow below the tee with which you want to jump, 
and press ENTER. The tee you've just selected is now outlined. Now move 
the arrow below the hole into which you want to jump, and again press 
ENTER. If your selection is a legal choice, your tee moves into the hole 
you've chosen and the tee it jumped is removed. Illegal moves are 
announced across the top of the screen. If you change your mind after a 
move, position the arrow under the tee you selected, press ENTER, and then 
select another tee.

   When you have eliminated all the tees you can jump, you can press N to 
play another game. Your status is displayed at the top of the screen, the 
screen clears, and a new game appears. To quit the game at any time, press 
ESC.


How the Program Works

   I wrote Jump for Tandy Graphics mode, but it works with EGA or VGA 
graphics when the screen mode in Line 90 is changed to SCREEN 7 and the 
CLEAR statement is removed. (Editor's note: we've made this change for 
you. You Tandy 1000 users, who need the Tandy Graphics mode, edit Line 90 
to look like this: 90 KEY OFF:CLEAR,,,32768!:SCREEN 5:COLOR 7,0:CLS) Lines 
90 through 350 go on to set up the dimensions and variables and then draw 
the game board onscreen. Lines 360 through 460 contain the main-program 
routine. Line 360 waits for keyboard input from the player.

   If the player presses ENTER, the program branches to Line 1610, where 
the arrow location is checked. If the arrow is under the first tee 
selected, the tee is outlined by a red box. If it points to a hole into 
which to jump, the first tee and the jumped tee are both erased, and the 
original tee moves into the hole. Play then returns to the main program, 
where the number of tees left is updated.

   When the player presses any cursor key, the program branches to the 
appropriate line to update the arrow location. Pressing the N key results 
in the program's branching to Line 2310, where the player's status is 
displayed at the top of the screen for about five seconds. Then Jump 
branches to Line 110 to start the game again.

                                  -=*=-

               Dennis Magee is a Sergeant First Class in the
            U.S. Army. He programs in BASIC for fun and 
            experience. He can be reached at 5067-B Hammond 
            Heights., Fort Campbell, KY 42223.

-=--------------        -=*=-     -=*=-     -=*=-        --------------=-
