예제 #1
0
 private void Initialize()
 {
     _player1.Board = BoardGeneratorService.GenerateRandomBoard();
     _player2.Board = BoardGeneratorService.GenerateRandomBoard();
 }
예제 #2
0
 public ChessGridViewModel(ChessRulesService chessRules, BoardGeneratorService generator)
 {
     this.generator = generator;
     this.rules     = chessRules;
     this.Squares   = new ObservableCollection <Square>();
 }