lichess-org / dartchess

Dart chess library for native platforms
https://pub.dev/packages/dartchess
GNU General Public License v3.0
33 stars 17 forks source link

Additional unit tests for attacks #34

Closed stscoundrel closed 5 months ago

stscoundrel commented 5 months ago

Adds few more unit tests to attacks. There were some cases which were not clearly covered with existing tests, so I added the following:

I wrote these as I was looking around the repo & seeing how things work. No errors where found, but you're welcome to add these to the current test battery.

veloce commented 5 months ago

Well thank you, I'm adding them as I don't see any harm doing so.

These test are nice because they are visual, but the really important tests in that repo are perft tests, to test validity of chess logic.