-
Notifications
You must be signed in to change notification settings - Fork 0
ATTACK
stanislawbartkowski edited this page Feb 2, 2020
·
6 revisions
Attack an opponent or village and start the battle.
executeCommand(token,"ATTACK",row,col,null)
- row, col: square where defending village or army is standing
executeCommand(token,"ATTACK",4,0,null)
Attack an army or village at the square (4.0)
{
'p' : { 'row' : row, 'col' : row },
'attack' : [{'row' : row, 'col' : row}]
}
- p : the position of the attacking army
- attack : list of adjacent squares where attack can be conducted