chiark / gitweb /
mao: Use "suits" variable
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 8 Jun 2021 11:57:40 +0000 (12:57 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 8 Jun 2021 11:57:40 +0000 (12:57 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
specs/mao.game.toml

index e4b5969eca0acc567fbf99b9d74a499cd912501e..52fea47416347b0a1f7d11280b2c5cc82aa504f0 100644 (file)
@@ -28,7 +28,8 @@ shape.xy = [25,30]
 {% endmacro deck %}
 
 {% macro deck52() %}
-{% for suffix in ["c","d","h","s"] %}
+{% set suits = "c d h s" | split(pat=" ") %}
+{% for suffix in suits %}
 [[pieces]]
 pos = [150, 84]
 type = "LibList"