Could someone go though my tictactoe game, because I have some problems regarding the the player being changed so either it's always X or it's always O.
ganzesMobileGame.aia (3.0 MB)
upload your blocks image here, hence the power users with no computer at hands also may help.
Turn is either X or an o no number and the variable WieOftWurdeSchonGespielt just means number of turn or rather how many times the players habe made there moves, and the highest number of moves is 9 because then it‘s a tie between both players
And my problem os that If like the players make there first move like for example if I set X into oke box and then it‘s the other players turn first of all there is no „O“ shown but rather a 1 and after player2 is done with their turn the turn wont change to „X“, it‘ll still be 1 or like in thus scenario an „O“
Look in the math blocks for a block that can tell you if a number is odd or even.
There will be a quotient and a remainder.
X gets odd turns.
I dont really know which block you’re talking about😅
I've solved the problem, however now if one player wins the game does't end
nvm solved it on my own, chose the wrong set variable for WieOftWurdeSchonGespielt