コード例 #1
0
        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);
        }
コード例 #2
0
        private void PlayAgentMove(JObject moveDescAsJObj)
        {
            string moveDesc = moveDescAsJObj["moveDesc"].ToString();

            game.PlayAgentMove(moveDesc);
        }