From 5dec2ac6358c28eef7eeb22e1a8e37ac4d14d0f4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 16 Jul 2023 14:57:07 +0200 Subject: Collections no score. --- rules.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rules.js b/rules.js index e41513d..5d501d6 100644 --- a/rules.js +++ b/rules.js @@ -1016,7 +1016,14 @@ function goto_collections() { if (own_hand().length > 0) game.state = "collections_reveal" else + goto_collections_score() +} + +function goto_collections_score() { + if (calc_collections_score()) game.state = "collections_score" + else + end_turn() } states.collections_reveal = { @@ -1029,7 +1036,7 @@ states.collections_reveal = { tile(tile) { reveal_tile_into_court(tile) if (own_hand().length === 0) - game.state = "collections_score" + goto_collections_score() }, } -- cgit v1.2.3