Game Tiebreaker Snippet
Two players have completed a game.
The score of Player 1 is saved in a
first, and the score of Player 2 in an
If either player scored more points than the other, they are the winner!
However, if both players tie, then the player that played second is the winner.
You also have access to a
firstStarted that is set to
true if Player 1 played first and
Record the result of the game in an existing
winner, which you should set to
1 if Player 1 won
2 if Player 2 won.
(Do not declare
winner, simply set its value appropriately.)