I'm working on creating a golf scorecard that can keep track of multiple side games. I'm having trouble with one called Vegas or Casino.
In said game, two man teams compete against each other by combining their scores into one number. For example:
Player A = 4
Player B = 5
Team 1 score of 45 (The low number goes first)
Player C = 5
Player D = 6
Team 2 score of 56
Team 1 wins 11 points.
This is all easy enough. The problem I'm having is with some scoring events that can happen that alter the calculations.
1. If a natural birdie or better is scored, it flips the opposing teams score. So their 56 above becomes 65. However, if the other team matches the birdie with their own birdie or net birdie, then there is no flip.
Currently I'm able to get the flip to display when there is a birdie but I can't figure out how to undo the flip if the birdie is matched. Any thoughts on how to do this?
In said game, two man teams compete against each other by combining their scores into one number. For example:
Player A = 4
Player B = 5
Team 1 score of 45 (The low number goes first)
Player C = 5
Player D = 6
Team 2 score of 56
Team 1 wins 11 points.
This is all easy enough. The problem I'm having is with some scoring events that can happen that alter the calculations.
1. If a natural birdie or better is scored, it flips the opposing teams score. So their 56 above becomes 65. However, if the other team matches the birdie with their own birdie or net birdie, then there is no flip.
Currently I'm able to get the flip to display when there is a birdie but I can't figure out how to undo the flip if the birdie is matched. Any thoughts on how to do this?