Dimenticare icon

Pseudocode for patching pawns

Dimenticare | PRO | 12/10/13 12:57:26 AM UTC | 0 ⭐ | 565 πŸ‘οΈ | Never ⏰ | []
text |

380 B

|

None

|

0 πŸ‘

/

0 πŸ‘Ž

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

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž