Chess-Challenge
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?
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
There are variavles of the Move class, called StartSquare and TargetSquare that convey square information about the move.