skip to main
|
skip to sidebar
ISM001
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:
http://www.box.net/shared/xcm5g7uqlm
Sunday, November 25, 2007
ISM001 FightersUniverse
Boss class
http://pastebin.ca/796691
Player class
http://pastebin.ca/796692
FightersUniverse
http://pastebin.ca/796693
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
Home
Subscribe to:
Posts (Atom)
Blog Archive
▼
2007
(4)
▼
December
(1)
Final Project Puzzle
►
November
(1)
►
October
(2)
About Me
lokhy
View my complete profile