For example, with B:WK1,K2,14,16,31,37,42:BK49 fen, state.moves() will return [{"jumps":[],"takes":[],"from":49,"to":49},{"jumps":[],"takes":[],"from":49,"to":44},{"jumps":[],"takes":[],"from":49,"to":49},{"jumps":[],"takes":[],"from":49,"to":43}]
You can see twice the king can move to its own position.
I don't think the rules allow it and I didn't found in the code where the list is generated, maybe you know how to remove them?
For example, with B:WK1,K2,14,16,31,37,42:BK49 fen, state.moves() will return [{"jumps":[],"takes":[],"from":49,"to":49},{"jumps":[],"takes":[],"from":49,"to":44},{"jumps":[],"takes":[],"from":49,"to":49},{"jumps":[],"takes":[],"from":49,"to":43}] You can see twice the king can move to its own position. I don't think the rules allow it and I didn't found in the code where the list is generated, maybe you know how to remove them?
Thanks,
Johnny