You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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