-# Copyright 2020-2021 Ian Jackson and contributors to Otter
-# SPDX-License-Identifier: AGPL-3.0-or-later
-# There is NO WARRANTY.
+{# Copyright 2020-2021 Ian Jackson and contributors to Otter
+ SPDX-License-Identifier: AGPL-3.0-or-later
+ There is NO WARRANTY. #}
+
+{% macro vanilla_officers() -%}
+["R","N","B","Q","K","B","N","R"]
+{% endmacro vanilla_officers %}
+
+{% macro fairy_pieces() -%}
+["commoner","elephant","knight-king","mann","zebra",
+ "ship","giraffe","cannon"]
+{% endmacro fairy_pieces -%}
table_size = [300, 200]
table_colour = "#bbd"
type = "LibList"
lib = "wikimedia"
prefix = "chess-w-"
-items = ["R","N","B","Q","K","B","N","R"]
+items = {{ m::vanilla_officers() }}
posd = [10, 0]
[[pieces]]
type = "LibList"
lib = "wikimedia"
prefix = "chess-b-"
-items = ["R","N","B","Q","K","B","N","R"]
+items = {{ m::vanilla_officers() }}
posd = [10, 0]
[[pieces]]
type = "LibList"
lib = "wikimedia"
prefix = "chess-w-"
-items = ["R","N","B","Q","K","B","N","R"]
+items = {{ m::vanilla_officers() }}
posd = [10, 0]
[[pieces]]
type = "LibList"
lib = "wikimedia"
prefix = "chess-b-"
-items = ["R","N","B","Q","K","B","N","R"]
+items = {{ m::vanilla_officers() }}
posd = [10, 0]
[[pieces]]
type = "LibList"
lib = "wikimedia"
prefix = "chess-w-"
-items = ["commoner","elephant","knight-king","mann","zebra",
- "ship","giraffe","cannon"]
+items = {{ m::fairy_pieces() }}
posd = [10, 0]
[[pieces]]
type = "LibList"
lib = "wikimedia"
prefix = "chess-w-"
-items = ["commoner","elephant","knight-king","mann","zebra",
- "ship","giraffe","cannon"]
+items = {{ m::fairy_pieces() }}
posd = [10, 0]
[[pieces]]
type = "LibList"
lib = "wikimedia"
prefix = "chess-b-"
-items = ["commoner","elephant","knight-king","mann","zebra",
- "ship","giraffe","cannon"]
+items = {{ m::fairy_pieces() }}
posd = [10, 0]
[[pieces]]
type = "LibList"
lib = "wikimedia"
prefix = "chess-b-"
-items = ["commoner","elephant","knight-king","mann","zebra",
- "ship","giraffe","cannon"]
+items = {{ m::fairy_pieces() }}
posd = [10, 0]
[[pieces]]