Пример #1
0
        public Tests()
        {
            IFiguresInitializer       figuresInitializer       = new FiguresInitializer();
            IFiguresimagesInitializer figuresImagesInitializer = new FiguresimagesInitializerDefault();

            gameProvider = new GameProvider(figuresInitializer, figuresImagesInitializer, new Player[] { new Player("P1", Color.White), new Player("P2", Color.Black) });
        }
Пример #2
0
        public BoardView()
        {
            this.InitializeComponent();

            IFiguresInitializer       figuresInitializer       = new FiguresInitializer();
            IFiguresimagesInitializer figuresImagesInitializer = new FiguresimagesInitializerDefault();

            gameProvider   = new GameProvider(figuresInitializer, figuresImagesInitializer, new Player[] { playerWhite, playerBlack });
            boardViewModel = new BoardViewModel(gameProvider.FiguresOnBoard);

            Loaded += BoardView_Loaded;
        }