-
Notifications
You must be signed in to change notification settings - Fork 7
Game
Ankur rai edited this page Feb 14, 2018
·
6 revisions
-
Playersit contains Players details. -
Battlefieldit contains all positions of Battlefield. -
Current playerit contains current player index.
-
setArmyOftakes team and piece positions and deploy them to the there respective positions. -
getBattleFieldOftakes team and give their respective battlefield. -
changeTurnit changes current player. -
hasWonwhether current player is winner or not. -
addPlayerit adds player in current game. -
getPotentialMoveprovide potential move of given piece location. -
battledo battle between two playing pieces.