Sebastian Lague

Results 52 comments of Sebastian Lague

Hi @therealsterlingberger, I'm happy you're enjoying the challenge! That's a bit mysterious, I tried writing the same code: ``` ulong blackPawnAttacks = BitboardHelper.GetPawnAttacks(new Square("b4"), false); BitboardHelper.VisualizeBitboard(blackPawnAttacks); Console.WriteLine(blackPawnAttacks); // 327680 ```...

The result is cached (the init function is called, which granted it probably shouldn’t be, but it does exit immediately if the initialization step has already been done). I agree...

Hi, I should have mentioned in the docs -- this was a community contribution added in v1.17. Please update your version of the project to access it.

I don't quite understand what you mean, could you provide more info?

It is unlikely that this is a bug in the GetLegalMoves method since the board UI was able to detect that the move is illegal. The most common cause for...

Thanks, I'll make sure the final tournament is run with this rule in place

Hi, the BitboardHelper class has some functions for getting a bitboard of all attacked squares by a given piece. See GetSliderAttacks/GetKnightAttacks/GetKingAttacks/GetPawnAttacks. You can then use the GetNumberOfSetBits function for example...

Yes it's finished and was tested on Windows 10. I recommend making a debug build and then running that. You should get some sort of error message in the console...

Thanks @VDeltaGabriel, closing this now

This has been added in the new version