Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

handling game

 
Peter Tellanaki
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
Brian Legg
Ranch Hand
Posts: 488
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic