diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-28 10:39:50 +0100 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-28 10:39:59 +0100 |
commit | 291911b00034b7af857c158d0769af48bbaf0e6c (patch) | |
tree | 0d6ae6db9516b3ffd14509dea0519dd8d20f6564 | |
parent | 8f868927fecdb4cf36dc33721a6aeccbb6d15001 (diff) | |
download | votes-for-women-291911b00034b7af857c158d0769af48bbaf0e6c.tar.gz |
sort states cards by region
-rw-r--r-- | play.js | 3 | ||||
-rw-r--r-- | rules.js | 1 |
2 files changed, 3 insertions, 1 deletions
@@ -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]) @@ -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}`) |