Thursday, December 6, 2007

Final Project Puzzle

This is a out put of my project
if player move the number to ascending.

after moved Game will give a massage "You Win" and the spacl will chang to "16"
Link:

Sunday, November 25, 2007

ISM001 FightersUniverse


Boss class
Player class
FightersUniverse
Boss class is extends Player Class
FightersUniverse is the main
In FightersUniverse, the important thing is
how to array the player because player and bass player power different is not the same
so that i use array[] to group them. it is easy to do random

Monday, October 15, 2007

ISM001 HomeWork 1 Ver1.1




game(main)
http://pastebin.ca/738084

game (method)
http://pastebin.ca/738085

updated
player.getpower<0>

System.out.println("%s is loses",player);

to

value = 0 + randamattact.nextInt(2);// randamattact 1/2 can be attact
if (value ==1) { player1.attack(powerdiff); //player1 attack +powerdiff
player2.attack(-powerdiff);//player2 attack - powerdiff
System.out.printf("%s loses\n",player2.getname()); }
else{ player1.attack(-powerdiff);
player2.attack(powerdiff);
System.out.printf("%s wins\n",player2.getname());

Output Statement in main

ISM001 HomeWork 1

main
http://pastebin.ca/737222

method
http://pastebin.ca/737224