So I'm making a Tic-Tac-Toe game, I've got up to where x can be placed on the board but I don't know how to decide which player turn it is. I would be highly appreciated if I could get some help.
You will also need to change your event function so it displays the "Symbol" instead of just X so it keeps up with the current player, and make sure it changes the player each time.
1 2 3 4 5
if ( ( x > board[0].x ) && ( x < board[0].x + board[0].w) && ( y > board[0].y) && (y < board[0].y + board[0].h) )
{
apply_surface(0, 0, Symbol, screen);
Change_Player();
}
Hopefully that gives you some ideas on how it works anyway, you could also add some text showing which players turn it is at the top right etc.