Treasure Hunter Program

Version 1.0

 

Overview:  This program will be the early version of the treasure hunter game.  The general idea behind the game is that a treasure hunter will wander around a map in search of some hidden treasure.  You've already created a Version 0 that has several screens...title screen, instructions, starting point,...etc..

 

Specifics:

 

Use TOP DOWN programming to create the following subroutines:

 

Title Screen:  This sub should clear the output screen and show program information such as name, programmer name, and course information.  The screen appears animated and should pause for a short time in order for the user to view and clear when complete.

 

Directions:  This screen should explain the general purpose of the program.  The subroutine should clear the screen first, pause long enough to read (or have the user press ENTER), and clear the screen when complete.

 

Get Starting Point:  This sub should clear the screen and ask the user for the staring row and the staring column.  Please make sure that the user is told that the row should be between 1 and 24 and the column should be between 1 and 79.  Clear the screen after these two pieces of information has been entered.

 

Show Hunter:  This sub does not clear the screen.  Instead, it locates the starting row and column (entered by the user) and prints the letter H on the screen. 

 

Get Command:  This sub does not clear the screen.  It locates row 23, column 1, and prints a prompt on the screen that asks the user to enter their command (L, R, U, D, C, H, Q). Allow the user to enter a variable named c$ (c for command. The $ allows for a letter)

 

When complete, inspect your program. Make sure that all subroutines have the RETURN statement.

 

Add a REM line of symbols between subroutines to help visually seperate them.
Like this: (REM ***************************************************************************)

 

Save the program as THUNTER1.