2007年12月10日 星期一

Homework2

BossPlayer.java:
http://www2.hkedcity.net/citizen_files/aa/qd/ty12222/myresources/200710/448475/BossPlayer.java
FightersUniverse.java:
http://www2.hkedcity.net/citizen_files/aa/qd/ty12222/myresources/200710/448475/FightersUniverse.java
Player.java
http://www2.hkedcity.net/citizen_files/aa/qd/ty12222/myresources/200710/448475/Player.java
I use two arrays and shuffle to random which player attack.
A numbers array is{0.1,2,3}
A player array is {player1,player2,player3,player4}
0 is player1, 1 is player2, 2 is player3, 3 is player4

2007年12月5日 星期三

ism001 project

This web-site is about the Tic-Tac-Toc
http://www2.hkedcity.net/citizen_files/aa/vl/ty200000/myresources/200712/457668/TicTacToe.htm
The java code is
http://www.hkedcity.net/citizen_files/aa/vl/ty200000/myresources/200712/457668/TicTacToe.java
and all of the file, such as picture, sound in here
http://www2.hkedcity.net/citizen_files/aa/vl/ty200000/myresources/200712/457668/javaTicTacToe.zip


New function: creat a count. If you win, draw or lose, the computer will mark down how many times you ,win, draw and lose.

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.