rudzen / ChessLib

C# chess library containing a complete data structure and move generation.
MIT License
81 stars 22 forks source link

Wrong file bitboard initializers #22

Closed SloPro closed 5 years ago

SloPro commented 5 years ago

These constants in Bitboards.cs are wrong:

private const ulong FILEC = 0x2020202020202020;
private const ulong FILED = 0x1010101010101010;
private const ulong FILEE = 0x808080808080808;
private const ulong FILEF = 0x404040404040404;

They should be

private const ulong FILEC = 0x404040404040404;
private const ulong FILED = 0x808080808080808;
private const ulong FILEE = 0x1010101010101010;
private const ulong FILEF = 0x2020202020202020;
rudzen commented 5 years ago

I'll look into it asap.

rudzen commented 5 years ago

Confirmed. Fixed in #20

Pending merge.