summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-06-05 23:19:25 +0200
committerTor Andersson <tor@ccxvii.net>2024-06-05 23:19:25 +0200
commitde18086709f3e19e7bab269d3fecb74ca47cb4b8 (patch)
treeeda69fabaeeda229d2b5d807fa49f7b2f72f424a
parent203e5ccbf475135e5e177cda78f0acb00aa5f7fb (diff)
downloadfriedrich-de18086709f3e19e7bab269d3fecb74ca47cb4b8.tar.gz
reveal troops and hands at game over
-rw-r--r--rules.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 29f277d..087d370 100644
--- a/rules.js
+++ b/rules.js
@@ -4519,6 +4519,8 @@ exports.view = function (state, player) {
if (game.state === "game_over") {
view.prompt = game.victory
+ view.troops = game.troops
+ view.hand = game.hand
} else if (game.active !== player) {
let inactive = states[game.state].inactive || game.state
if (typeof inactive === "function")