2007年11月29日星期四

ISM001 Assignment 2~The Fighters' Universe

Introduction:
This game is a upper-level version of "Simple Text Fighter". Basicly, the rule is similar to the "Simple Text Fighter", except:
(1) The initial power of each player is 10;
(2) In this game, two more players "Boss Player" have created;
(3) Boss players are more resistant to attacks, they will gain double the power difference on win and lose half the power difference on loss;
(4) In each round of fight, two players will be selected to fight by random, if the selected players are same or is dead, random again;
(5) There is a chance that the power to be reduced is not an integer. In that case, take the integer part (e.g. 4.5 is rounded down to 4);
(3) At the begin and the last of fight, it will show the power of all players.

The java source code of The Fighters' Universe:
-- Player: http://hk.geocities.com/tomgundam2004/Player.java
-- BossPlayer: http://hk.geocities.com/tomgundam2004/BossPlayer.java
-- FightersUniverse: http://hk.geocities.com/tomgundam2004/FightersUniverse.java

Here are the java file and class file: http://www.sendspace.com/file/lfqqgo

The screenshot of the java output:

ISM001 Project~Fractal generator

http://hk.geocities.com/tomgundam2004/MM_CASETEST4291/index.htm

Introduction:
This is a Java Applet to output a simple fractal generator. The generator will produce a colored fractal pattern.

The java source code of cMandelbrot:
http://hk.geocities.com/tomgundam2004/MM_CASETEST4291/cMandelbrot.java

Here are the java file and class file:
-- cMandelbrot.java
-- cMandelbrot.class

The screenshot of the java output:



source code from : http://pastebin.ca/705929
and edited by Tom Ho

2007年10月18日星期四

ISM001 Assignment 1~Simple Text Fighter

Introduction:

This game is about 2 Players to Fighter together and looks forward which player win.

The rule of the game:

(1) The initial power of each player is 100.

(2) In each round of fight, the winner will gain the difference between the two players, and the loser will reduce the same amount of "power difference" at the same time.

e.g. player1 (80 power) attacks player2 (100 power), player1 wins. Then the power difference is 20, so the new power of player1 and player2 are 100(80+20) and 80(100-20).

If the "power difference" is 0 before the attack (i.e. both players have the same power), then use 1 as the difference.

(3) When the power of any player is negative, then that player is dead. The game end.

The java source code of FighterPlayer: http://pastebin.ca/740044

Here are the java file and class file:

The screenshot of the java output:

2007年10月17日星期三

Welcome to Tom Ho's Program Blog!!

This is my first post on this blog. I will sharing my program(although they are too bad=.=) in this blog. Welcome to visit!!