online-go:devel
← dexonsmith:show-ruleset-and-stones-in-black-player-card
opened 12:21AM - 02 Feb 24 UTC
Now, the ruleset and handicap are directly shown in the black player card (excep…t in Zen mode), in the same spot where the white player card has komi.
- The ruleset uses the two-letter country code for any rules named after a country, and "Ing" and "AGA" for the Ing and AGA rules.
- The rules matrix document now includes the the short code in parentheses.
- The handicap uses the unicode for a circled number up to 50. After that, it uses parentheses (such as "(51)"), which is the old way to circle numbers on a typewriter. I think this won't come up in practice.
Things considered and not implemented (but could be tried again in the future).
- Link to the rules matrix. I tried this out, but I was worried someone might accidentally abandon a game when trying to pop out the scoring panel.
- Using `pgettext()` to allow translation of the codes. I wasn't sure if this was useful, but could implement if reviewer thinks it'd be better.
- Draw circle using CSS `border-radius` instead of the Unicode. The existing choice is more compact and works nicely for all handicaps up to 50.
- Also show the long name of the rules in the pop-out scoring panel. It seemed cluttered.
I'll post some examples of how this looks in a moment.