コード例 #1
0
 private void Start()
 {
     playerInfo = new PlayerInfo {
         playerName = playerName, id = Environment.TickCount
     };
     VersusCommunication.WritePlayerInfo(playerInfo);
 }
コード例 #2
0
        private void SubmitMove()
        {
            board.MakeMove(moveToMake);
            playerInfo.lastMove = moveToMake.Value;
            VersusCommunication.WritePlayerInfo(playerInfo);
            playerInfo.lastMovePly = myNextMovePlyCount;
            VersusCommunication.WritePlayerInfo(playerInfo);

            myNextMovePlyCount += 2;
            thinking            = false;
            hasMove             = false;

            Log("Submitted Move (move = " + moveToMake.Value + ")");
        }