Skip to content

STARTMOVE

stanislawbartkowski edited this page Mar 12, 2019 · 3 revisions

Action

Select a figure to start. All next "move" actions are related to the figure started. In order to move the next figure, the currently touched figure must terminate the move.
If there is more than one figure standing at the square, then a smaller number of figures can be moved. The figures untouched are ready for the next STARTMOVE action unless all figures are touched.

Format

executeCommand(token,"STARTCOMMAND",row,col,"{"numberofArmies" : <number>, "numberofScouts" : <number>}")

Parameters

  • row,col : Square where figures are standing
  • numberofArmies, numberofScouts : Fugures available for move

Itemize

List of figures and points where figures are standing eligible for moving.

[
{ "f" : { "numberofArmies" : , "numberofScouts" : , 'p' : { "row" : row, "col": col }}
]
Example:

[ {
  "f" : {
    "numberofArmies" : 0,
    "numberofScouts" : 1
  },
  "p" : {
    "row" : 2,
    "col" : 2
  }
}, {
  "f" : {
    "numberofArmies" : 1,
    "numberofScouts" : 0
  },
  "p" : {
    "row" : 3,
    "col" : 0
  }
}, {
  "f" : {
    "numberofArmies" : 1,
    "numberofScouts" : 0
  },
  "p" : {
    "row" : 3,
    "col" : 1
  }
} ]
Clone this wiki locally