ArnoldSmith86 / virtualtabletop

a virtual surface in the browser on which you can play board, dice and card games
https://virtualtabletop.io
GNU General Public License v3.0
169 stars 31 forks source link

Can the scoreboard show cumulative scores? #1537

Open flackr opened 1 year ago

flackr commented 1 year ago

For many games, e.g. scrabble, it's common to have the score for each round be the player's cumulative score rather than what they scored on that round. AFAICT, while you can do this by scoring the current round scores you then can't use the totals column because it would total those numbers.

E.g. what I would want is something like this (Where "Final" is the totals row):

Round Player 1 Player 2
1 5 9
2 12 14
3 24 22
Final 24 22
96LawDawg commented 1 year ago

So just hide the totals row? If the last score in the box is the cumulative score, why do you need to repeat it?

But you are correct. What you want is not possible currently. There is no way to exclude certain rows from the totals. Didn't even consider the possibility.

flackr commented 1 year ago

Well, I want the last row with the current score to always be visible. But maybe that could be accomplished by automatically scrolling it into view instead.

But I still think if it would be better in the long term if we make the scoreboard support current total vs per round scores. Otherwise I also can't use the _totals property for example because it will say Player 1 has 41 points.

rogerl50 commented 1 year ago

The display changes could be done pretty easily without changing much. We'd have to think through what happens when you click to edit, since the scores shown probably don't actually appear in the seat's scores array.

I would just enter the per turn scores in the score array and introduce a new property that makes the scoreboard show the cumulative scores.