HELP!!! with tic-tac-toe in XPCE/prolog
From: PredAlien (eliteoftheelite_at_hotmail.com)
Date: 12/05/04
- Next message: PredAlien: "XPCE recognisers"
- Previous message: Markus Triska: "Re: adding numbers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 05 Dec 2004 08:12:28 -0500
hi
i'm having a real problem getting a basic game of tic tac toe working.
i've been coding in XPCE for a week now, and i thought i'd grasped it but
obviously i haven't.
im using nine buttons to represent the nine squares and i have drawing
methdos to draw either a nought or a cross in the right position. i also
have texts to display player X's go or player O's go.
However, i can't get the flow of the game going:
i want PLAYER X GO to appear and for when the user clicks for example the
fifth button for the button object to be destroyed, and a X to be drawn in
the centre position. Then Player O GO should appear and for when the user
clicks on the first button that a nought should appear in the top left
corner. etc. etc.
please someone out there help!!!
many thanks!
- Next message: PredAlien: "XPCE recognisers"
- Previous message: Markus Triska: "Re: adding numbers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]