From 08af731fc5853520a0cb5a4750b468bebc51374b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 15 May 2022 17:02:50 +0200 Subject: Take blocks from end. --- rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rules.js') 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; -- cgit v1.2.3