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); }
public TicTacToeGameStateImpl(TicTacToeGameStateImpl gameState) { state = new TicTacToeBoardState(gameState.state); }
public TicTacToeGameStateImpl() { state = new TicTacToeBoardState(); }