01-31-2021, 10:13 PM
Happy to, Eric. I am using the rules from wikipedia (https://en.wikipedia.org/wiki/Tori_shogi)
Off the bat, I got my wires crossed in my original post. I meant to ask about drops; not promotion. Sorry for the goof.
Like shogi, tori shogi restricts certain drops. For example, in shogi you cannot drop a pawn on a file that already has a pawn. Tori shogi has a similar rule ("A swallow [pawn] cannot be dropped into the same file (vertical column) as two other unpromoted swallows controlled by the same player.") So, the following move should not be allowed:
I hadn't worked through the logic for that rule, but the standard shogi rule (two pawns) is in my code doesn't appear to work either.
Full tori shogi drop rules here: https://en.wikipedia.org/wiki/Tori_shogi#Drops
Off the bat, I got my wires crossed in my original post. I meant to ask about drops; not promotion. Sorry for the goof.
Like shogi, tori shogi restricts certain drops. For example, in shogi you cannot drop a pawn on a file that already has a pawn. Tori shogi has a similar rule ("A swallow [pawn] cannot be dropped into the same file (vertical column) as two other unpromoted swallows controlled by the same player.") So, the following move should not be allowed:
Code:
1. (Move E4-E5)
2. (Move D6-C6)
3. (Move 49/0-E4)
I hadn't worked through the logic for that rule, but the standard shogi rule (two pawns) is in my code doesn't appear to work either.
Full tori shogi drop rules here: https://en.wikipedia.org/wiki/Tori_shogi#Drops