-
Notifications
You must be signed in to change notification settings - Fork 0
SETSCOUT,SETARMY, BUYARMY, BUYSCOUT
stanislawbartkowski edited this page Feb 17, 2019
·
1 revision
Deploy army or scout.
- SETARMY and SETSCOUT: are possible only at the beginning of the game. Deploy army or scout for free.
- BUYARMY and BUYSCOUT : purchase figure
executeCommand(token,"SETARMY",row,col,{"row":row,"col":col}) executeCommand(token,"SETSCOUT",row,col,{"row":row,"col":col}) executeCommand(token,"BUYARMY",row,col,{"row":row,"col":col}) executeCommand(token,"BUYSCOUT",row,col,{"row":row,"col":col})
- row,col : city or capital where figure is deployed or built
- { row,col } : square adjacent to the city where figure is positioned
List of positions where army or scout canbe deployed.
A single element in the table has the format:
{ 'p' : {'row' : row, 'col' : col } , 'param' : {'row' : row, 'col' : col } }
- 'p' : city or capital where figure can be deployed
- 'param' : square adjacent to the city where figure can be positioned
If there is more then one square next to the city then element in the table is replicated.
Example:
[{'p': {'row': 2, 'col': 1}, 'param': {'row': 1, 'col': 0}},
{'p': {'row': 2, 'col': 1}, 'param': {'row': 1, 'col': 1}},
{'p': {'row': 2, 'col': 1}, 'param': {'row': 1, 'col': 2}},
{'p': {'row': 2, 'col': 1}, 'param': {'row': 3, 'col': 0}},
{'p': {'row': 2, 'col': 1}, 'param': {'row': 3, 'col': 1}},
{'p': {'row': 2, 'col': 1}, 'param': {'row': 3, 'col': 2}},
{'p': {'row': 2, 'col': 1}, 'param': {'row': 2, 'col': 0}},
{'p': {'row': 2, 'col': 1}, 'param': {'row': 2, 'col': 2}}
]