I need help figuring out how to return different regions depending on the. input.
Here is the base function I am trying to modify (the Two Pawns function for Yonin Shogi, which needs fixed):
(define "OnePawnPerColumn"
(=
(count Sites in:(sites Occupied by:#1 container:"Board" component:"Fuhyo"))
(count Sites in:(difference (sites Occupied by:#1 container:"Board" component:"Fuhyo") (sites Column (column of:(to)))))
)
)
I want "(sites Column (column of:(to)))" to be "(sites Row (row of:(to)))" when #1 is even.
Here is the base function I am trying to modify (the Two Pawns function for Yonin Shogi, which needs fixed):
(define "OnePawnPerColumn"
(=
(count Sites in:(sites Occupied by:#1 container:"Board" component:"Fuhyo"))
(count Sites in:(difference (sites Occupied by:#1 container:"Board" component:"Fuhyo") (sites Column (column of:(to)))))
)
)
I want "(sites Column (column of:(to)))" to be "(sites Row (row of:(to)))" when #1 is even.