Exemplo n.º 1
0
        public void CreatesCorrectBlockedBishopAttacksForSquare(ulong occupied, Square square, ulong expectedAttacks)
        {
            // Act
            var bishopAttacks = Rays.BishopAttacks(square, occupied);

            // Assert
            Assert.Equal <Bitboard>(expectedAttacks, bishopAttacks);
        }
Exemplo n.º 2
0
        public void CreatesCorrectBishopAttacksForSquare(Square square, ulong expectedAttacks)
        {
            // Act
            var bishopAttacks = Rays.BishopAttacks(square);

            // Assert
            Assert.Equal <Bitboard>(expectedAttacks, bishopAttacks);
        }