http://www.cs.wisc.edu/~tick/cs302/Program2.html
The teleporter tube, however, is broken. Fortunately, Marvin (as he's fond of telling people) has the brains the size of a planet and can repair the teleporter if he can only get ahold of some spare parts. He'd better hurry, though, or he'll be melted like a smore in a campfire.
Over the next few assignments we'll be adding to this program to create a fully-playable game. For the moment, we'll only be designing the backbone for it, so some of the elements mentioned above won't be incorporated until a later assignment(for example, you'll note below there's no mention of spare parts...for this program, we'll have the tube working fine to begin with and no spare parts at all)
Marvin is at 1 1 Marvin has made 0 moves out of 25 What's Marvin's next move?(N,S,E,W,Q) 'S' Marvin is at 1 2 Marvin has made 1 moves out of 25 What's Marvin's next move?(N,S,E,W,Q) 's' Illegal Command What's Marvin's next move?(N,S,E,W,Q) 'W' Marvin refused to go through the wall. What's Marvin's next move?(N,S,E,W,Q) 'E' Marvin is at 2 2 Marvin has made 2 moves out of 25 What's Marvin's next move?(N,S,E,W,Q)
Feel free to spice up the output anyway you like, so long as the following are included:
In the future, we may be loading in from disk some mazes for Marvin to move around, so he won't always start off at (1,1), nor will the tube always be at (5,5)...for that matter, our room can be a different size for each maze, and we can vary the time limit if we want. For now all these will be constants, hence we're making them parameters.
DO NOT USE GOTOS! The good programming fairy takes a heavy dislike of any code written with gotos. Don't mess with fairies; they turn code into frogs, and frogs begin with F.
Your files are timestamped with the current time when you copy them to your handin directory. This will be used to check they were handed in on time or whether late day penalties apply. Important - Make sure you copy the correct versions of your program files because these are what will be graded.
You also have to hand in a printed copy of your FORTRAN source code file.
Correct Cases [18] Marvin makes a legal move [3] Marvin is given an illegal command [3] Marvin is told to try to walk through a wall [3] Marvin escapes [3] Marvin fries [3] Marvin quits the game early [3] User Interface [6] Useful prompts for directions [3] Meaningful display of Marvin's world (location, etc) [3] Implementation [20] Correct implementation of DO and/or DO/WHILE [4] Correct use of IF/THEN or other conditionals [4] Correct declarations of paramater constants [4] Meaningful variable names [2] Indenting and neatness [2] Correctness of Overall Program [4] Documentation [6] Program description [3] Variable definitions and section comments [3] ____________________________________________________________________ Total (3%) [50]