BATTLE SHIPS for a trip down memory lane
Posted: Thu Feb 23, 2012 6:05 am
Here's my BATTLE SHIPS program for a trip down memory lane.
Use CLOAD
Due to my Dragon 32's limited memory, I could only fit the following into the code:
Full graphics & sound;
1 Player vs. the Dragon;
Move cursor with arrows;
Shoot with the space bar;
Enemy ships appear after being obliterated;
Your ships disappear after being slaughtered;
The computer randomly places his 4 ships (lengths vary from 5 units to 2 units);
Your ships are also placed randomly (lack of memory);
You get 1 shot - if you score a hit - you'll get another shot (you'll need it);
The computer gets 3 shots at a time; it will never repeat the same shot;
The 12 x 12 grid means the computer should destroy you in max 40 turns;
At the end of the game, press the space bar to start the game again.
Enjoy! Feedback welcome...
Regards, Cloete
Use CLOAD
Due to my Dragon 32's limited memory, I could only fit the following into the code:
Full graphics & sound;
1 Player vs. the Dragon;
Move cursor with arrows;
Shoot with the space bar;
Enemy ships appear after being obliterated;
Your ships disappear after being slaughtered;
The computer randomly places his 4 ships (lengths vary from 5 units to 2 units);
Your ships are also placed randomly (lack of memory);
You get 1 shot - if you score a hit - you'll get another shot (you'll need it);
The computer gets 3 shots at a time; it will never repeat the same shot;
The 12 x 12 grid means the computer should destroy you in max 40 turns;
At the end of the game, press the space bar to start the game again.
Enjoy! Feedback welcome...
Regards, Cloete