Adds few more unit tests to attacks. There were some cases which were not clearly covered with existing tests, so I added the following:
Scenarios when a piece is near the edge of the board
Scenarios when a piece is surrounded by other pieces
Checks that none of the attack functions accepts illegal positions.
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.
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.