summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorFrans Bongers <fransbongers@franss-mbp.home>2024-12-22 14:45:51 +0100
committerFrans Bongers <fransbongers@franss-mbp.home>2024-12-22 14:45:51 +0100
commitfa18a313b5a57b106a8c41a542f08ba4697435ca (patch)
tree2146925d47aaf3107c8007bd513f4f99c4682c41 /play.js
parentb80ba3e739ed5dd1fa2796e3683bbe98659d865a (diff)
downloadland-and-freedom-fa18a313b5a57b106a8c41a542f08ba4697435ca.tar.gz
Add final bid and determine winner
Diffstat (limited to 'play.js')
-rw-r--r--play.js2
1 files changed, 1 insertions, 1 deletions
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');
}
}