rbaltrusch / chess_ng

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

Add tests for Queen moves #2

Closed rbaltrusch closed 2 years ago

rbaltrusch commented 2 years ago

Queen moves currently are probably not working correctly. This can be easily tested with a few unit tests that test the queens diagonal and horizontal movement, as well as interaction with targets (blocking and capturing).

rbaltrusch commented 2 years ago

Fixed with commit 3a13515, which tests queen horizontal and vertical movement, as well as friendly and enemy captures.