So I want to create an app I got everything down already but I want to set it so that when their score reach 100, the app will set the score to 50 Once only, unless a reset is press then same thing reach 100 the app will set the score to 50 Once only and then will continue counting from there, also I not sure there to post this.
So this game called Cabo, 4 players, Player A, Player B, Player C and Player D, so once the game end scoring happen that can be calculate manually, but the game does not end in 1 round so the game will end when one player reach a score of 100 point and the player with the lowest score wins, but if a player manages to score 100 point Exactly, it will reset the point to 50, but this only happen once per player and per game, and the game continues until one player hits 100 point.
If you have two players then this would be the algorithm:
set player1ScoreWasReset to false
set player2ScoreWasReset to false
If player1Score = 100 AND player1ScoreWasReset = false
set player1Score to 50
set player1ScoreWasReset to true
If player2Score = 100 AND player2ScoreWasReset = false
set player2Score to 50
set player2ScoreWasReset to true