From fa18a313b5a57b106a8c41a542f08ba4697435ca Mon Sep 17 00:00:00 2001 From: Frans Bongers Date: Sun, 22 Dec 2024 14:45:51 +0100 Subject: Add final bid and determine winner --- play.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'play.js') diff --git a/play.js b/play.js index ffa817a..1ff8d8d 100644 --- a/play.js +++ b/play.js @@ -279,7 +279,7 @@ function on_update() { for (let c of view.hand) { ui.cards[c].classList.remove('selected'); ui.hand.appendChild(ui.cards[c]); - if (c === view.selected_card) { + if (c === view.selected_card || view.final_bid.includes(c)) { ui.cards[c].classList.add('selected'); } } -- cgit v1.2.3