private void PlayAgentMove(JObject cellNumAsJObj) { if (cellNumAsJObj["cellNum"] .ToString().Trim().Equals("reset")) { game.Reset(); return; } int cellNum = int.Parse(cellNumAsJObj["cellNum"].ToString()); //Console.WriteLine(cellNum); game.PlayAgentMove(cellNum); }
private void PlayAgentMove(JObject moveDescAsJObj) { string moveDesc = moveDescAsJObj["moveDesc"].ToString(); game.PlayAgentMove(moveDesc); }