Why did I lose? It's a bug?

Just look at the server analysis and you will find the graph a bug!

I think it should be a draw. I remember a similar error occuring when I was playing S-chess on pychess, if there is repetition of position with last move being mine, I just lose which is absurd.

Just checked the source code ( github.com/WandererXII/lishogi ) and figured out that this isn’t a bug, it’s intentional. I further searched and this is what I found en.wikipedia.org/wiki/Shogi#Illegal_move .

“”
Illegal moves include:

- Violating the Two Pawns (nifu) restriction (See §Drops above.)
- Violating the Drop Pawn Mate (uchifuzume) restriction
- Dropping or moving a piece to position where it cannot move (such as dropping a knight to an opponent's last two ranks, etc.)
- Dropping a piece with its promoted value
- Playing out of turn, e.g. making more than one move or white moving first instead of moving second.
- **Making perpetual check four times (cf. sennichite)**
- Leaving one's king in check, or moving one's king into check
- Moving a piece contrary to how its movements are defined (for example, moving a gold like a silver or moving a bishop off its legal diagonal)
“”

So it turns out @ hydrophilic made an illegal move by perpetually checking @ abunickabhi 4 times.

Reconnecting