CODE CREATIVE
SUBMARINE ATTACK
A list of expectations
Criteria Points Yes/No
Program creates a submarine and places it
within
the 300x300 meter world.
2
Asks the user for depth charge data and error checks the input. 4
Checks if for a direct hit, near miss, or a miss. 8
Displays information regarding the state of the submarine after each attack. 2
Communicates a success message if the submarine was sunken. 1
Communicates a failure message if the submarine survives 5 depth charge attacks. 2
At the end, asks the player if they would like to engage another submarine. 2
Total: 21