my dog learned polymorphism*
The moose likes Game Development and the fly likes handling game Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Game Development
Bookmark "handling game" Watch "handling game" New topic
Author

handling game

Peter Tellanaki
Greenhorn

Joined: Apr 27, 2009
Posts: 7
hello

i have made game and gui. Now, how to handle game ? idea to play against ai which also made.
i think having class or main with

player_one.move()
player_two.move()
my problem is making move function for human. how to make that when i want the move to be move that human has made on gui? move function needs to wait for human to click gui and remember choice.

this is my last prob before i am done !
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

"Peter Jes T " please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.


SCJP, SCWCD.
|Asking Good Questions|
Brian Legg
Ranch Hand

Joined: Nov 07, 2008
Posts: 488
Peter, could you describe the problem you are having in more detail? I am having a hard time figuring out what you are trying to do. If you already made the game and the GUI then what is the problem you are having?

SCJA
~Currently preparing for SCJP6
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: handling game