コード例 #1
0
        public ulong GetStateHashCode()
        {
            ulong state = 0;

            for (byte i = 0; i < 3; ++i)
            {
                for (byte j = 0; j < 3; ++j)
                {
                    state *= 3;
                    state += this.state.Board[i, j];
                }
            }
            return(state);
        }
コード例 #2
0
 public TicTacToeGameStateImpl(TicTacToeGameStateImpl gameState)
 {
     state = new TicTacToeBoardState(gameState.state);
 }
コード例 #3
0
 public TicTacToeGameStateImpl()
 {
     state = new TicTacToeBoardState();
 }