Open TrentHawkins opened 2 years ago
So let's create two new issues (reader, engine) for the new features which are currently blockers for a UI and a fully functional game.
Sounds good. Priority shall be given on #10 , which I will personally undertake, but feel free to join. This means that the two objectives here are up for grabs if anyone wants to focus on that instead. I will split this issue into two new ones tomorrow.
Issue has been updated @palasso. I leave the game engine on the side for now. Can anyone get the reader done based on the documentation? Probably regex magics will be necessary.
Text input
The baseline approach is to prompt each player on their turn to input their move by chess algebraic notation. Said notation is not simple or consistent, but is actually the most minimal possible so parsing it will be a challenge:
e4
. If a piece specification is needed (most common scenario) the piece is specified only, like "Knight to G5" isNg5
. If two pieces of the same type are gunning for the same square, their file is also designated, like "Knight on E file to G5" is<insert-notation-here>
. There are more rules.