Added the end game
Some checks failed
/ publish (push) Failing after 34s

This commit is contained in:
Leon Mika 2025-12-20 22:32:30 +11:00
parent e020f2a4b6
commit 1f8394f23b
4 changed files with 44 additions and 8 deletions

View file

@ -43,10 +43,12 @@
</tr>
</tbody>
</table>
<div>
<button data-action="click->scorecard#endRound">End Round</button>
<button>End Game</button>
<div class="btns">
<div data-scorecard-target="prevailing">Prevailing: E</div>
<div>
<button data-action="click->scorecard#endGame">End Game</button>
<button data-action="click->scorecard#endRound">End Round</button>
</div>
</div>
</div>
<div id="player-entry" class="hidden" data-controller="newgame"
@ -63,7 +65,12 @@
<label for="player-5">Player 5</label>
<input type="text" data-newgame-target="playerName">
<button data-action="click->newgame#startGame">Start Game</button>
<div class="btns">
<div></div>
<div>
<button data-action="click->newgame#startGame">Start Game</button>
</div>
</div>
</div>
<div id="end-round" class="hidden" data-controller="endround"
data-action="gamestatechanged@window->endround#handleGameState">
@ -73,8 +80,13 @@
<p data-endround-target="wind"></p>
<button data-action="click->endround#nextRound">Next Round</button>
</div>
<div class="btns">
<div></div>
<div>
<button data-action="click->endround#goBack">Cancel</button>
<button data-action="click->endround#nextRound">Next Round</button>
</div>
</div>
<script src="./main.js" type="module"></script>
</body>