This adds an option for tuple based progress bar rendering for players:
(67/100 vs 71/100)
Before there were two options in each game's pane.ts Pane::getPlayersScores :
undefined - No player progress bars are displayed
number[] - Each player's bar is the percentage of their number divided by the sum of all numbers. Both are then displayed "dueling" moving back and forth as the numbers change.
This adds a third return type:
Array<[number, number]> - This is an array of tuples. First first number is the numerator, and the bottom the denominator. Then each player gets 1/n of the bar, where n is the number of players in a game (so 1/2 = 50% for a two player game). We then display their progress bar as the percent of the numerator/denominator, and alternatingly align them to the left or right. This means each progress bar can increase/decrease with no respect to the other player. This mode is ideal for games where each player needs to reach some absolute score to win, not an arbitrary relative score.
All games updated to support this mode, though none currently use it.
This adds an option for tuple based progress bar rendering for players: (67/100 vs 71/100)
Before there were two options in each game's
pane.ts Pane::getPlayersScores
:undefined
- No player progress bars are displayednumber[]
- Each player's bar is the percentage of their number divided by the sum of all numbers. Both are then displayed "dueling" moving back and forth as the numbers change.This adds a third return type:
Array<[number, number]>
- This is an array of tuples. First first number is the numerator, and the bottom the denominator. Then each player gets 1/n of the bar, where n is the number of players in a game (so 1/2 = 50% for a two player game). We then display their progress bar as the percent of the numerator/denominator, and alternatingly align them to the left or right. This means each progress bar can increase/decrease with no respect to the other player. This mode is ideal for games where each player needs to reach some absolute score to win, not an arbitrary relative score.All games updated to support this mode, though none currently use it.