CS 110 Introduction to Computing

Project #10: Lets play Daleks!


In this assignment you will complete (at least for the purposes of this class) the game of Daleks. There are two parts to completing the game. First, give Dr. Who some special power (as below). Second, add directions to the html page on which the applet sits so that anyone can play your version of Daleks without you sitting there explaining it to them.

There are many special powers that you might give Dr. Who. Two of the traditional ones are:

Hyperspatial Jump
Causes Dr. Who to jump from where he is to somewhere else on the board. If he lands on something, he replaces it. Interestingly, Dr. Who has no control over his jumping, so occasionally he lands in a spot that was no better than where he was. He can use hyperspatial jump at most 4 times in a game.
Sonic Screwdriver
This kills and removes from the board all Daleks within 1 square of Dr. Who. He can use this power at most once per game.
Feel free to make up something else (I will give bonus points for especially interesting powers.) Be careful, the powers should give some advantage to Dr. Who, but not make it totally trivial for Dr. Who to defeat the Daleks.

One of the most difficult parts of programming -- for many programmers -- is to write a set of directions so that other people can uses their programs. So, the final part of the final programming assignment for this class is to write directions to the end user. These directions must be sufficiently complete that an and user can read them and have a full appreciation of the game and how to play it.

The directions should appear in the html page that holds the applet. Hence, you will need to write the directions in html. Nothing fancy is required, however the directions must be understandable. You might find Appendix C of the text useful; it has some instructions on writing html. Also useful might might any of the html pages on the class web site. These show how I use html to write everything. Since I normally do not use an html generator, the use of html tags in my web pages is minimal.


Due Date: December 9, at the beginning of class.
Submit:
Grading: Applet 70 pts
Instructions 30 points

Extra Credit

You can get a maximum of 10 extra credit points on this assignment.
Restart
Add to the game the ability of restart it at any point (including after Dr. Who dies). Restart should use the key listener just like everything else. (Do not use a button, putting a button onto the Daleks board effectively turns off he key listener.). The effect of restart should be identical to killing the applet and starting it again.
7 points
Additional powers
The assignment calls for giving Dr. Who one extra power. Give Dr. Who more than one. As above, especially interesting extra powers may be worth more and could allow you to get more than 10 extra credit points.
3 points per power