For a small project at college I have to create a simple tic-tac-toe game. I'm using a windows form instead of the console and my grid is made up of 3x3 buttons. I've got the method nailed down on checking winner/loser/draw.
But I don't know how to make the application switch to player 2 after player 1 has clicked a button in the grid and vice versa. if player 1 is X and clicks any button in the grid, it should be X. That button should then be disabled and the program waits for player 2 to click.
Don't know if it's like writer's block, but I just can't get my head wrapped around the code.
Any advice would be appreciated.
This post has been edited by gareth.nic: 10 April 2011 - 06:45 AM