rbaltrusch / chess_ng

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

Knight moves #1

Closed rbaltrusch closed 2 years ago

rbaltrusch commented 2 years ago

The knight currently does not move from his starting position, because his only move, KnightMove does nothing so far.

The implementation must consider that the knight is the only piece that teleports through space (does not get blocked by other units).

Implementation is to be done in the class chess_engine.move.KnightMove and must include unit tests that prove that the knight is able to move correctly and does not move out of bounds, jumps over targets, and can capture properly.

rbaltrusch commented 2 years ago

Also see issue #3, which asks for knight unit tests. If an implementation to solve issue #1 contains these tests, both issues may be closed jointly.

rbaltrusch commented 2 years ago

Fixed with commit e0eec29, which added the knight move functionality and its unit tests.