summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-06-01 13:38:38 +0200
committerTor Andersson <tor@ccxvii.net>2024-06-01 13:38:38 +0200
commit9e37b582086d37b3f60996705bf75e10090f5408 (patch)
tree2f247b54ef2f61dc9179d5a3f68d201ba45e5f12 /rules.js
parentae0d821d3c30e948877d5d3f61ce2ee75b6986e5 (diff)
downloadfriedrich-9e37b582086d37b3f60996705bf75e10090f5408.tar.gz
cycle pieces/markers when clicking the hide pieces button
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index b0769df..b0224af 100644
--- a/rules.js
+++ b/rules.js
@@ -231,10 +231,6 @@ const all_power_trains = [
const TRAIN_IA = 32
-function is_general(p) {
- return p < 24
-}
-
const all_pieces = [ ...all_power_generals.flat(), ...all_power_trains.flat() ]
const all_generals = [ ...all_power_generals.flat() ]
@@ -294,6 +290,10 @@ const all_enemy_generals = [
all_prussia_generals,
]
+function is_general(p) {
+ return p < 24
+}
+
function is_supply_train(p) {
return p >= 24
}