예제 #1
0
 static void Main(string[] args)
 {
     GenerateMagics(
         "rook",
         MagicBitboardFactory.GenerateRookOccupancyBitboards(),
         MagicBitboardFactory.RookOffsets,
         "rook.txt");
 }
예제 #2
0
            public void CalculatesCorrectly()
            {
                var bitboards = MagicBitboardFactory.GenerateRookOccupancyBitboards();

                Assert.AreEqual(0x8080808080807EUL, bitboards[7]);
                Assert.AreEqual(0x404047A040400UL, bitboards[26]);
                Assert.AreEqual(0x17E0101010100UL, bitboards[40]);
                Assert.AreEqual(0x6E10101010101000UL, bitboards[60]);
            }