Chess-Challenge icon indicating copy to clipboard operation
Chess-Challenge copied to clipboard

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?

Open JellyWasCoding opened this issue 2 years ago • 1 comments

          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

JellyWasCoding avatar Aug 27 '23 12:08 JellyWasCoding

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

Edward-789 avatar Aug 29 '23 12:08 Edward-789