pub fn play() -> Command
Expand description

Execute the specified move.

Effects

A stone of the requested color is played at the requested vertex. The number of captured stones is updated if needed and the move is added to the move history.

Fails

  • Syntax error
  • Illegal move ("illegal move")

Comments

Consecutive moves of the same color are not considered illegal from the protocol point of view.