Closed colette-b closed 2 years ago
I also used this definition of the Hub protocol but I can't find the part that it says that captures can be ordered arbitrarily. Hub engines return the captures in order. I have created a PR with a fix for this.
The linked file says: "For captures, all the captured pieces (but not the pivots) are included in any order like this: from x to x captured x captured ... without any spaces." Anyway, I checked the pull request and it fixes the issue for me. Thank you very much! :+1:
I had missed this. Thanks.
Parsing moves in hub format might fail, if the move has the captures unordered. I use this definition of the hub protocol, which says the captures can be ordered arbitrarily: https://github.com/rhalbersma/scan/blob/master/protocol.txt In the example below, first move is parsed correctly and the second one raises an error.