diff --git a/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml b/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml index b6dea7b..0d8445f 100644 --- a/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml +++ b/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml @@ -26,7 +26,10 @@
- + @* Both the label and the title are rewritten every render from whether a hand + is out — see Render.renderHeaderActions. What is here is what is true before + the first render: no hand, so pressing it only moves the button. *@ + @* Not the accent any more. It is a shortcut to a sheet, available all night, and it is never the next step — the bar always has that, and at showdown the bar says so in as many words. See .actionAdvance in holdem.css. *@ @@ -44,7 +47,7 @@ Not an `*Overlay` id, deliberately — Modal watches those and would take the sidebar panel this becomes on a desktop for a dialog. It is driven entirely by - body.seatSheetOpen, and it is `display: none` above 700px where the panel is + body.seatSheetOpen, and it is `display: none` above 900px where the panel is just a panel. *@
@@ -89,11 +92,59 @@ half-way through a night. *@

Table Setup

+ @* The numbers first, and only the numbers. + + This panel is the one thing that is open when the tool is first + opened, and it was 886px of a 667px phone — the two figures its own + summary glances at, the blinds, sat below 218px of prose explaining + three switches a dealer may never touch. The three have gone into + "While you deal" below, with the paragraphs that explain them, which + is where House take and Without live betting already were: the panel + had the vocabulary for this and was only using it for money. *@ + @* Every field below takes digits and none of them is type="number". + That is deliberate, and it is the second half of a fix — the first + half is Render.setField, which stopped a re-render writing over the + text somebody was still typing. + + type="number" was costing more than it paid here. It silently drops + characters it dislikes with no feedback to the person or to assistive + tech; it reports a half-typed "0." as "0", which is what let the + decimal point be written away; it does not expose selectionStart, so + nothing can put a caret back where it was; it draws a spin button + into a 54px-wide blind field, where five digits already need 45 of + the 52 available; and it is the control GOV.UK dropped from their + number patterns after user testing, for the same reasons plus Dragon + and NVDA. + + inputmode is what actually summons the keypad on a phone, and it is + the better keypad: "decimal" carries the separator for the reader's + locale, which is the key a dealer needs to type 0.25 and the one + type="number" leaves them hunting for on iOS. + + min/max/step go with it. Nothing relied on them: the seat count is + clamped to 2..24 in main.js before it is used, and the money fields + are read through a finite-number check that a spinner never provided + anyway. *@
+
+ + +
+ +

Blinds post themselves each hand. Seats without their own stack start here.

- -

Turn this on if a person outside the game deals — no seat shows the dealer button, but blinds still rotate automatically each hand.

- - @* The label used to lead with "Track the board", which is the feature's name - rather than what pressing it does to your evening. What it does is put a - card sheet in front of you at four moments: each street, and the showdown. *@ -

Every time you deal a street, a sheet asks which cards came off the deck, and puts them on the felt. At the showdown it asks for each hand that turns over — then Resolve Pot reads the winner and the amount instead of asking you. Close the sheet at any point to go back to picking the winner yourself.

- - @* On by default, and the only setting here that is. A dealer has to - opt in to the tool doing more than they asked; they should not have - to opt in to it staying readable. *@ -

Stops the phone dimming and locking between the flop and the turn. It only holds while betting is open, so the screen sleeps as usual during breaks — and the tool says so the first time it takes hold.

-
- - -
- -

Blinds post themselves each hand. Seats without their own stack start here.

+ + @* All three change what the tool does rather than what the table is, + and all three are set once and then left alone. The glance says so + when one of them is not on its default, because a switch you cannot + see is a switch you cannot remember turning on. *@ +
+ While you deal +
+ +

Turn this on if a person outside the game deals — no seat shows the dealer button, but blinds still rotate automatically each hand.

+ + @* The label used to lead with "Track the board", which is the feature's name + rather than what pressing it does to your evening. What it does is put a + card sheet in front of you at four moments: each street, and the showdown. *@ +

Every time you deal a street, a sheet asks which cards came off the deck, and puts them on the felt. At the showdown it asks for each hand that turns over — then Resolve Pot reads the winner and the amount instead of asking you. Close the sheet at any point to go back to picking the winner yourself.

+ + @* On by default, and the only setting here that is. A dealer has to + opt in to the tool doing more than they asked; they should not have + to opt in to it staying readable. *@ +

Stops the phone dimming and locking between the flop and the turn. It only holds while betting is open, so the screen sleeps as usual during breaks — and the tool says so the first time it takes hold.

+
+
House take @@ -144,11 +190,11 @@
-
- - + @* One question with three answers, not two boxes with four corners. + + A seat is sitting out, in the hand, or folded — and "folded" only means + anything while the seat is in. So the two checkboxes here could be ticked + into a state that means nothing, and the code that stopped them doing it + `disabled` the Fold box whenever In hand was clear. Measured: that left the + label at the same opacity and the same colour with a `title` on it, so a + dealer pressing Fold on a seat that was sitting out got no movement and no + reason — the exact thing round 16 went through the tool to remove, hiding + from the rule that finds it because the title sat on the label rather than + on the control. + + Three named states cannot contradict each other and none of them is ever + unavailable, so there is nothing left to dim. The radiogroup is the same + shape the card picker's suits use. *@ +
+ + +
@@ -410,7 +486,7 @@
Total: $0
@@ -429,7 +505,7 @@ @@ -442,7 +518,7 @@ @@ -480,7 +556,7 @@