summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--play.js3
-rw-r--r--rules.js1
2 files changed, 3 insertions, 1 deletions
diff --git a/play.js b/play.js
index 77e9676..08e1510 100644
--- a/play.js
+++ b/play.js
@@ -666,7 +666,8 @@ function on_update() { // eslint-disable-line no-unused-vars
for (let c of view.opposition_claimed)
document.getElementById("opposition_claimed").appendChild(ui.cards[c])
- for (let c of view.states_draw)
+ // XXX sort is temporary, is done server side for new games.
+ for (let c of view.states_draw.sort())
document.getElementById("states_draw").appendChild(ui.cards[c])
for (let c of view.strategy_draw)
document.getElementById("strategy_draw").appendChild(ui.cards[c])
diff --git a/rules.js b/rules.js
index 55687c1..0bce869 100644
--- a/rules.js
+++ b/rules.js
@@ -587,6 +587,7 @@ function setup_game() {
shuffle(game.strategy_deck)
game.states_draw.splice(-3) // 3 states card aren't used
+ game.states_draw.sort()
log_h2("States Cards")
for (let c of game.states_draw)
log(`C${c}`)