2007年10月14日 星期日

Homework1

ism001

homework1

this file is on

http://www.hkedcity.net/citizen_files/aa/qd/ty12222/myresources/200710/448475/Fighter.java

Attack point is random(0-5) +c.

In the first round, c = 0.

c will increase 10 in every round.

The second round, attack point is 0-5 +10.....

Attack point = 0-5 + 10 x (round-1)

If the player hp is 0/ smaller than 0, the game will stop.