SebLague / Chess-Challenge

Create your own tiny chess bot!
https://www.youtube.com/watch?v=Ne40a5LkK6A
MIT License
1.78k stars 1.07k forks source link

I need to create a Square object but I can just create it using a move that is the last move in the draft board, but I can only make it using the algebraic name. How can I create it using the last move? #463

Open JellyWasCoding opened 10 months ago

JellyWasCoding commented 10 months ago
          I need to create a Square object but I can just create it using a move that is the last move in the draft board, but I can only make it using the algebraic name. How can I create it using the last move?

Originally posted by @JellyCZYT in https://github.com/SebLague/Chess-Challenge/issues/433#issuecomment-1671162358

Edward-789 commented 10 months ago

There are variavles of the Move class, called StartSquare and TargetSquare that convey square information about the move.