Exemplo n.º 1
0
        public Board GetBoard(IStartingPiecesSetFactory pieceFactory)
        {
            var board = Board.GetInstance();

            board.InitPieces(pieceFactory.GetPiecesInStartingPosition());
            return(board);
        }
Exemplo n.º 2
0
 public MainWindowVM(IBoardFactory boardFactory,
                     IStartingPiecesSetFactory pieceFactory)
 {
     Board = new BoardVM(boardFactory.GetBoard(pieceFactory));
 }