Exemple #1
0
 public void Init()
 {
     board = new Board();
     config = new ConfigChess();
     hCoord = config.ListHorizontalBoardCoordinates();
     vCoord = config.ListVerticalBoardCoordinates();
     board.Initialize( hCoord, vCoord );
 }
Exemple #2
0
        public void Initialized_Chess_Has_A_Board_Initialized()
        {
            ConfigChess config = new ConfigChess();
            var boardMock = new Mock<IBoard>();
            boardMock.Setup( x => x.Initialize( config.ListHorizontalBoardCoordinates(), config.ListVerticalBoardCoordinates() ) );

            chess = new ChessEngine( boardMock.Object, new Player( Player.PlayerColor.White ), new Player( Player.PlayerColor.Black ), new ConfigChess() );
            chess.Initialize();

            boardMock.Verify();
        }