public ReadOnlyBlockadeState(BlockadeState state)
        {
            this._state = state;

            this._board           = new Lazy <Grid <Cell> >(() => state.GetBoard());
            this._boardCalculator = new Lazy <BoardCalculator>(() => state.GetBoardCalculator());
        }
Esempio n. 2
0
 public BlockadeState CreateFromConfiguration(BlockadeConfiguration configuration)
 {
     return(BlockadeState.CreateFromConfiguration(configuration, this._boardCalculatorFactory));
 }