public static Move FromJSON(JSONNode json) { var actions = new List <BoardAction>(); var arr = json["actions"].AsArray; foreach (JSONNode js in arr) { actions.Add(BoardAction.FromJSON(js)); } return(new Move(actions)); }
void AddAndExecute(BoardAction action) { actions.Add(action); action.Do(board); }
public void Execute(BoardAction action) { action.Do(board); }