Page 1 of 1
Tie Breaking Circumstances
Posted: 01 May 2024, 22:06
by Goatlegged
In the rules does it not specify "If there is a tie, the player with the most lira wins. If there's still a tie, the highest total of wine value in the cellar wins and if there's still a tie, the highest value of grapes on the crush pad wins. If there's STILL a tie, spin a bottle or share the victory." So why does this site use the formula of "Most Lira, total value of wine in the cellar, total value of grapes on the crush pad (formula: 100000*lira + 100*total_wines + total_grapes))". Why are we not adhering according to the rules of the game?
Re: Tie Breaking Circumstances
Posted: 01 May 2024, 22:32
by greenjacket124
Goatlegged wrote: ↑01 May 2024, 22:06
In the rules does it not specify "If there is a tie, the player with the most lira wins. If there's still a tie, the highest total of wine value in the cellar wins and if there's still a tie, the highest value of grapes on the crush pad wins. If there's STILL a tie, spin a bottle or share the victory." So why does this site use the formula of
"Most Lira, total value of wine in the cellar, total value of grapes on the crush pad (formula: 100000*lira + 100*total_wines + total_grapes))". Why are we not adhering according to the rules of the game?
Not seeing your point. That formula
does adhere to the rules.
Re: Tie Breaking Circumstances
Posted: 02 May 2024, 00:38
by Meeplelowda
Goatlegged wrote: ↑01 May 2024, 22:06
In the rules does it not specify "If there is a tie, the player with the most lira wins. If there's still a tie, the highest total of wine value in the cellar wins and if there's still a tie, the highest value of grapes on the crush pad wins. If there's STILL a tie, spin a bottle or share the victory." So why does this site use the formula of
"Most Lira, total value of wine in the cellar, total value of grapes on the crush pad (formula: 100000*lira + 100*total_wines + total_grapes))". Why are we not adhering according to the rules of the game?
Like greenjacket wrote, that formula does adhere to the tie breaker rules. It's just a cleaner way to program it rather than having a bunch of nested conditional evaluations such as:
Code: Select all
if player_a_lira == player_b_lira:
if player_a_total_wine == player_b_total_wine:
if player_a_total_grapes == player_b_total_grapes:
game_result = 0 (i.e., a tie)
[Note: this is not the actual syntax from the BGA Studios framework]
That's just for two players. For more it would be even messier.
The formula accomplishes both ranking players when there isn't a tie, and ranking them by tie breakers when there is. Do you see why? Total wine can only affect rank in the formula if lira is equal because the multiplier for lira is 3 orders of magnitude larger than the total wine multiplier. Similarly, total grapes can only affect the rank if the other two factors are tied.