-
Notifications
You must be signed in to change notification settings - Fork 7
General
Ankur rai edited this page Feb 14, 2018
·
3 revisions
-
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