SebLague / Chess-Challenge

Create your own tiny chess bot!

Home Page:https://www.youtube.com/watch?v=Ne40a5LkK6A

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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?

JellyWasCoding opened this issue · 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 #433 (comment)

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