Skip to content

General

Ankur rai edited this page Feb 14, 2018 · 3 revisions

General

Properties

Same as default playing piece


Methods

  • getRank gives back the rank of General as 9

  • attackedBy gives back self as died piece in case of higher rank attacker Or gives back both piece in case of General as opponent piece Or gives back opponent in case of all other pieces

  • getPotentialMoves gives all the potential moves of General

  • isMovable returns true

Clone this wiki locally