🕸Fergus Duniho wrote on Fri, May 29, 2020 06:26 PM UTC:
I wouldn't use ask in the Pre-Move section. This should be used after a player has moved, not before. Since the Jokers begin on !p9 and !p2, you want to use those coordinates, not p9 and p2, which do not exist. Prefixing a coordinate with the exclamation mark indicates that labels for that file should not be displayed on the board. This is useful for in-hand areas you drop pieces from Shogi-style. The rest may be okay to include in your Pre-Move section, but there isn't any special need to include it there as opposed to the Post-Move section, where other important code would have to go anyway. When using verify, bear in mind that it exits the function when given a false value. This is okay when no other code follows it than what is shown here.
I wouldn't use ask in the Pre-Move section. This should be used after a player has moved, not before. Since the Jokers begin on !p9 and !p2, you want to use those coordinates, not p9 and p2, which do not exist. Prefixing a coordinate with the exclamation mark indicates that labels for that file should not be displayed on the board. This is useful for in-hand areas you drop pieces from Shogi-style. The rest may be okay to include in your Pre-Move section, but there isn't any special need to include it there as opposed to the Post-Move section, where other important code would have to go anyway. When using verify, bear in mind that it exits the function when given a false value. This is okay when no other code follows it than what is shown here.