Skip to content
stanislawbartkowski edited this page Feb 2, 2020 · 6 revisions

Action

Attack an opponent or village and start the battle.

Format

executeCommand(token,"ATTACK",row,col,null)

Parameters

  • row, col: square where defending village or army is standing

Usage example

executeCommand(token,"ATTACK",4,0,null)

Attack an army or village at the square (4.0)

Itemize

{
  '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