Sunday, December 16, 2007

The Fighters' Universe

This homework is an extension of the last one -- the Simple Text Fighter. It turns out that there are two types of fighters in our imaginary Fighters' Universe. In addition to the ordinary players in the last homework, we also have Boss Players, who are more resistant to attacks on lose and gain more power on win.

Read the rules in detail: Homework 2: The Fighters' Universe

Sample output:
Java Fighters' Universe! v20071112
== Round 1 ==
Justin attacks Boss Janice!
Justin loses
*** Justin: 10 -> 9
*** Boss Janice: 10 -> 12
== Round 2 ==
Boss Janice attacks Justin!
Boss Janice wins
*** Boss Janice: 12 -> 18
*** Justin: 9 -> 6
== Round 3 ==
Boss Janice attacks Boss Florence!
Boss Janice loses
*** Boss Janice: 18 -> 14
*** Boss Florence: 10 -> 26
== Round 4 ==
Boss Janice attacks Justin!
Boss Janice loses
*** Boss Janice: 14 -> 10
*** Justin: 6 -> 14
== Round 5 ==
Boss Florence attacks Justin!
Boss Florence wins
*** Boss Florence: 26 -> 50
*** Justin: 14 -> 2
== Round 6 ==
Boss Florence attacks Justin!
Boss Florence loses
*** Boss Florence: 50 -> 26
*** Justin: 2 -> 50
== Round 7 ==
Boss Janice attacks Justin!
Boss Janice loses
Boss Janice is killed!
*** Boss Janice: 10 -> -10
*** Justin: 50 -> 90
== Game over ==
*** Ho Yin's power = 10
*** Justin's power = 90
*** Boss Janice's power = -10
*** Boss Florence's power = 26

My work:

FightersUniverse.java: http://pastebin.ca/819554

BossPlayer.java: http://pastebin.ca/819550

Player.java: http://pastebin.ca/819556

How to run: Compile the files (javac *.java) and run it (java FightersUniverse).

Students' works (ordered by last name):

I asked the students to put their works in a programming portfolio. Feel free to comment.

Cham Hin Cheung: Lingnan Fighting II

Chau Chung Yin: The Fighters’ Universe(simple verison)

Ching Ho Yee: Fighters Universe

Chow Chun Ho: Not yet uploaded

Chu Ming Hei: Homework2

Chu Po Ling: Java of Fighters' Universe! 20071212

Fung Ting Pong: The Fighters’ Universe

Ho Ka Wai: ISM001 Assignment 2~The Fighters' Universe

Ieong Weng Tat: Not yet uploaded!?

Lau Wing Lok: Fighters Universe

Law Mei Kwan: 2nd Homework-The Fighters’ Universe

Lee Cornwall: ISM001 Homework 2: The Fighters’ Universe

Lok Hey Young: ISM001 FightersUniverse

Ng Ho Lam:Text Fighter Universe

Pang Wing In: Java Fighters’ Universe

Tsoi Chung Him: Not yet uploaded!?

Wu Po Yu: The Fighters’ Universe

Monday, December 10, 2007

Doing something great with Java

Last Friday, our junior programmers from ISM001 presented (for the first time in their life) their Java project to the rest of the class. While some of their works are more outstanding than the others, all of them have spent great effort in the project and I hope they enjoy the process of programming.

The requirements are written in the Project Guideline.

Some of the works are particularly impressive. They are:

gamestart.gif

Java Game—逃出嶺南NAB系列(一) by Fung Ting Pong and Ching Ho Yee:

這遊戲是逃出嶺南NAB系列中的第一隻 → 「脫逃!!!NAB204!!!」...... 遊戲講述一個學生在NAB204下課後覺得疲累﹐但又要等組員討論某科project﹐所以在NAB204睡了一會。當他睡醒﹐發現整個房間烏燈黑火﹐所以他去開燈﹐之後去開門﹐發現門已被鎖﹐然後看鐘,發現自己竟然睡了近兩小時﹗結果他就開始想辦法逃離204了。

and the Matchman Battle (火柴人大戰) by Lau Wing Lok:




I asked the students to put their works in a programming portfolio. A full list is given below. Feel free to comment.

Students' works (ordered by last name):

Cham Hin Cheung: Octopus Simulator System

Chau Chung Yin: Flow-shop problem

Chow Chun Ho: Not yet uploaded

Chu Ming Hei: ism001 project

Chu Po Ling: Java of Fractal Generator! 20071207

Fung Ting Pong, Ching Ho Yee: Java Game—逃出嶺南NAB系列(一)

Ho Ka Wai: ISM001 Project~Fractal generator

Ieong Weng Tat: Java Project

Lau Wing Lok: Matchman Battle (Advance Text Fighter)

Law Mei Kwan: MY JAVA PROJECT-Fractal

Lee Cornwall: ISM001 Project One (井字過三關)

Lok Hey Young: Final Project Puzzle

Ng Ho Lam: ISM001 Project- Fractal

Pang Wing In: My Presentation of Fractal

Tsoi Chung Him: Presentation:JAVA GA (Points.java)

Wu Po Yu: Fractal

Enjoy!