The dealer table is a two-handed, big-screen tool. A dealer standing over a chopped pot with a phone in one hand and players waiting needs an answer in seconds, not a table to set up first — so /casino/texasholdem/quicksplit is the whole job on one screen: type the pot, tap how many ways, tap the smallest chip in play, read the payout. Nothing to configure, nothing saved. It splits in whole chips rather than raw arithmetic, because a dealer can't push half a chip across the felt: everyone gets the same stack and the remainder is called out as odd chips going one at a time to the first players left of the button. A pot that doesn't divide into the chosen denomination says so instead of quietly hiding the difference. Money formatting moves out of render.js into its own file so this screen can use it without pulling in the whole seat/chip UI. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_015bnp7xKUPFFSpwkYNFaPgb
61 lines
2.2 KiB
Plaintext
61 lines
2.2 KiB
Plaintext
@page
|
|
@model JoshHeaps.Net.Pages.Casino.TexasHoldem.QuickSplitModel
|
|
@{
|
|
ViewData["Title"] = "Quick Split";
|
|
Layout = "_Layout";
|
|
}
|
|
|
|
<div id="splitApp">
|
|
<header id="splitHeader">
|
|
<h1>Quick Split</h1>
|
|
<p class="splitSubtitle">Chop a pot without setting up a table.</p>
|
|
</header>
|
|
|
|
<div id="splitResult" aria-live="polite">
|
|
<div id="splitResultLabel">Each player gets</div>
|
|
<div id="splitResultAmount">$0.00</div>
|
|
<div id="splitOddNote" hidden></div>
|
|
<div id="splitDustNote" hidden></div>
|
|
</div>
|
|
|
|
<section class="splitField">
|
|
<label for="potInput" class="splitLabel">Pot</label>
|
|
<div class="potInputWrap">
|
|
<span class="potCurrency">$</span>
|
|
<input type="text" id="potInput" inputmode="decimal" autocomplete="off"
|
|
placeholder="0" aria-label="Pot amount" />
|
|
<button type="button" id="clearPotBtn" class="clearPotBtn" aria-label="Clear pot amount" hidden>✕</button>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="splitField">
|
|
<span class="splitLabel" id="waysLabel">Split between</span>
|
|
<div id="waysChoices" class="chipRow" role="group" aria-labelledby="waysLabel"></div>
|
|
</section>
|
|
|
|
<section class="splitField">
|
|
<span class="splitLabel" id="chipLabel">Smallest chip in play</span>
|
|
<div id="chipChoices" class="chipRow" role="group" aria-labelledby="chipLabel"></div>
|
|
</section>
|
|
|
|
<div id="splitActions">
|
|
<button type="button" id="resetSplitBtn" class="splitBtn splitBtnGhost">Clear</button>
|
|
<a href="/casino/texasholdem" class="splitBtn splitBtnGhost">Full dealer table →</a>
|
|
</div>
|
|
|
|
<p class="splitFootnote">
|
|
Uneven pots — someone all-in for less — need the side-pot walkthrough on the
|
|
<a href="/casino/texasholdem">full table</a>.
|
|
</p>
|
|
</div>
|
|
|
|
@section Styles {
|
|
<link href="/css/casino/quicksplit.css?v=@ViewData["cssVersion"]" rel="stylesheet" type="text/css" />
|
|
}
|
|
|
|
@section Scripts {
|
|
<script src="~/js/casino/holdem/money.js?v=@ViewData["cssVersion"]"></script>
|
|
<script src="~/js/casino/holdem/splitCalculator.js?v=@ViewData["cssVersion"]"></script>
|
|
<script src="~/js/casino/holdem/quickSplit.js?v=@ViewData["cssVersion"]"></script>
|
|
}
|