Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In the script that highlights the locations on the board, before you place down the highlight object:
- if the selected piece is a pawn
- if the location is on the SAME row as the pawn and there IS an enemy chess piece in this location OR
- if the location is on a DIFFERENT row as the pawn and there IS NOT an enemy chess piece in this location
- Exit the script without doing anything
Advertisement
Add Comment
Please, Sign In to add comment