private void Start() { playerInfo = new PlayerInfo { playerName = playerName, id = Environment.TickCount }; VersusCommunication.WritePlayerInfo(playerInfo); }
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 + ")"); }