ECE-1021

HOMEWORK #4

(Last Mod: 27 November 2010 21:38:40 )

ECE-1021 Home


High-Low Game

Imagine the console screen being a two dimensional grid with lettered rows and numbered columns such that A0 is in the upper left corner and P63 is in the lower right corner thus making a 16x64 grid. The grid should be centered on the screen and indexed on all four sides.

A random spot is selected somewhere within the grid and the User has a certain number of attempts to find the target. To do this, they enter a set of coordinates, such as G17, and you plot the entered coordinate along with a direction arrow pointing in the direction of the target.

If they find the target, some type of action should take place in the console to indicate success. Likewise, some type of action should indicated failure if their final attempt fails to find the target. These actions do not need to be elaborate.

Extra Credit

The following are enhancements that should be added as time permits: