summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-05-15 17:02:50 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:31:29 +0100
commit08af731fc5853520a0cb5a4750b468bebc51374b (patch)
tree095baf3ad5fe1f5bd0a701f702cf0d6604e643f6 /rules.js
parent664b214b00be89bf69608a169757c5e119574250 (diff)
downloadpax-pamir-08af731fc5853520a0cb5a4750b468bebc51374b.tar.gz
Take blocks from end.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index fb7a563..6b2959a 100644
--- a/rules.js
+++ b/rules.js
@@ -547,7 +547,7 @@ function gen_select_tribe_to_move() {
function select_available_block() {
let b = active_coalition_blocks();
- for (let i = b; i < b + 12; ++i)
+ for (let i = b + 11; i >= b; --i)
if (game.pieces[i] === 0)
return i;
return -1;