rbaltrusch / chess_ng

Full chess engine including chess AI
MIT License
2 stars 2 forks source link

Rook move tests #4

Closed rbaltrusch closed 2 years ago

rbaltrusch commented 2 years ago

Rook moves currently are maybe not working correctly at the moment. This can be easily tested with a few unit tests that test the rook horizontal movement. Diagonal movement should not be possible. Interaction with other targets (blocking and capturing) should also be tested.

rbaltrusch commented 2 years ago

Fixed with commit 3b22575, which adds unit tests for rooks, testing enemy and friendly captures, blocking and unblocked movement.