Make Move and Undo Move #10
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We need a way to make a theoretical move first, then test that position. To do this, we also need a way to undo the move.
We just need a way to store this state, which can be done in a simple struct. This should also be minimal, to be efficient when testing legal moves during our evaluations since this will process will probably happen millions of times.