Drara’s Weblog

December 12, 2007

The Fighters’ Universe

Filed under: Uncategorized — drara @ 3:41 pm

fightersuniverse.doc

player.doc

bossplayer.doc

They are my second project, please download the three files and rename them to “.java”.

Here is a sample:

===Round 1===
Boss Janice attacks Ho Yin!
Boss Janice wins!
Boss Janice ’s power = 12
Ho Yin ’s power = 10
===Round 2===
Ho Yin attacks Boss Janice!
Ho Yin loses!
Ho Yin ’s power = 9
Boss Janice ’s power = 16
===Round 3===
Boss Florence attacks Ho Yin!
Boss Florence wins!
Boss Florence ’s power = 12
Ho Yin ’s power = 9
===Round 4===
Justin attacks Ho Yin!
Justin wins!
Justin ’s power = 12
Ho Yin ’s power = 9
===Round 5===
Justin attacks Boss Florence!
Justin wins!
Justin ’s power = 14
Boss Florence ’s power = 12
===Round 6===
Boss Florence attacks Ho Yin!
Boss Florence loses!
Boss Florence ’s power = 11
Ho Yin ’s power = 15
===Round 7===
Justin attacks Ho Yin!
Justin loses!
Justin ’s power = 14
Ho Yin ’s power = 17
===Round 8===
Boss Florence attacks Ho Yin!
Boss Florence wins!
Boss Florence ’s power = 23
Ho Yin ’s power = 14
===Round 9===
Ho Yin attacks Boss Florence!
Ho Yin wins!
Ho Yin ’s power = 32
Boss Florence ’s power = 19
===Round 10===
Ho Yin attacks Boss Florence!
Ho Yin wins!
Ho Yin ’s power = 58
Boss Florence ’s power = 13
===Round 11===
Ho Yin attacks Justin!
Ho Yin loses!
Ho Yin ’s power = 36
Justin ’s power = 102
===Round 12===
Boss Janice attacks Boss Florence!
Boss Janice loses!
Boss Janice ’s power = 15
Boss Florence ’s power = 19
===Round 13===
Boss Janice attacks Justin!
Boss Janice loses!
Boss Janice is killed!
Boss Janice ’s power = -28
Justin ’s power = 276
===Round 14===
Boss Florence attacks Justin!
Boss Florence loses!
Boss Florence is killed!
Boss Florence ’s power = -109
Justin ’s power = 790
===Round 15===
Justin attacks Ho Yin!
Justin wins!
Ho Yin is killed!
Justin ’s power = 2298
Ho Yin ’s power = -341

==== Game Over ====
Boss Florence ’s power = -109
Boss Janice ’s power = -28
Ho Yin ’s power = -341
Justin ’s power = 2298

December 7, 2007

Fractal

Filed under: Uncategorized — drara @ 4:43 am

Fractal Mandel
This is my Fractal project, please edit the file name to mandel.java and compile, run it.

In my project, you can left click to zoom in, right click to zoom out.
http://wrongway.org/java/mandel.java

October 16, 2007

Homework 1: The Simple Text Fighter

Filed under: Uncategorized — drara @ 8:54 am

Homework 1: The Simple Text Fighter

Sample Output:

Java Simple Text Fighter!
== Round 1 ==
Ho Yin’s power = 100
Justin’s power = 100
Ho Yin attacks Justin!
Ho Yin loses
== Round 2 ==
Player Ho Yin’s power = 99
Player Justin’s power = 101
Ho Yin attacks Justin!
Ho Yin wins
== Round 3 ==
Player Ho Yin’s power = 101
Player Justin’s power = 99
Ho Yin attacks Justin!
Ho Yin wins
== Round 4 ==
Player Ho Yin’s power = 103
Player Justin’s power = 97
Ho Yin attacks Justin!
Ho Yin wins
== Round 5 ==
Player Ho Yin’s power = 109
Player Justin’s power = 91
Ho Yin attacks Justin!
Ho Yin wins
== Round 6 ==
Player Ho Yin’s power = 127
Player Justin’s power = 73
Ho Yin attacks Justin!
Ho Yin loses
== Round 7 ==
Player Ho Yin’s power = 73
Player Justin’s power = 127
Ho Yin attacks Justin!
Ho Yin loses
== Round 8 ==
Player Ho Yin’s power = 19
Player Justin’s power = 181
Ho Yin attacks Justin!
Ho Yin wins
== Round 9 ==
Player Ho Yin’s power = 181
Player Justin’s power = 19
Ho Yin attacks Justin!
Ho Yin loses
== Round 10 ==
Player Ho Yin’s power = 19
Player Justin’s power = 181
Ho Yin attacks Justin!
Ho Yin loses
Ho Yin is killed!
==GAME OVER==
Player Ho Yin’s Power => -143
Player Justin’s Power => 343

September 20, 2007

Hello world!

Filed under: Uncategorized — drara @ 3:40 pm

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!

Blog at WordPress.com.