Dimenticare

Pseudocode for patching pawns

Dec 9th, 2013
598
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. In the script that highlights the locations on the board, before you place down the highlight object:
  2.  
  3. if the selected piece is a pawn
  4. if the location is on the SAME row as the pawn and there IS an enemy chess piece in this location OR
  5. if the location is on a DIFFERENT row as the pawn and there IS NOT an enemy chess piece in this location
  6. Exit the script without doing anything
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment