Skip to content
Viraj Patil edited this page Feb 14, 2018 · 4 revisions

Spy

Properties

Same as default playing piece


Methods

  • getRank gives back the rank of spy as 1

  • attackedBy gives back self as died piece in case of higher rank attacker Or gives back both piece in case of spy as opponent piece Or gives back opponent in case of flag.

  • getPotentialMoves gives all the potential moves of spy

  • isMovable returns true

Clone this wiki locally