Open rabestro opened 2 months ago
chesslib doesn't natively support Dice Chess, but you can implement it with some additional logic. You could create a new class and method (e.g., DiceMoveGenerator#generateLegalMoves(Board)) that calls MoveGenerator#generatePseudoLegalMoves(Board). Instead of using Board#isMoveLegal to filter out illegal moves, you can write a custom method that allows moves that would normally be considered illegal, such as the king moving into an attacked square.
In Dice Chess, the King can move to a square that is under attack.
I want to use the library for Dice Chess game. How I can configure it?
https://dicechess.com/rules