hahaharry10 / Chess-Game

This project will create a command line chess game that will talk wirelessly to a second device.
0 stars 0 forks source link

Change move validators to implement check features. #15

Closed hahaharry10 closed 1 year ago

hahaharry10 commented 1 year ago

If the player was in check, the validator must make sure the move is out of check.

If the player is moving the king, the validator must make sure the king isn't being moved into check.

hahaharry10 commented 1 year ago

I have decided to change the implementation of a check feature to make the move instead and if the move puts the player in check then the move is then undone. So the move validators don't need to be changed.