DatUser / chess

0 stars 0 forks source link

[RULES] Check if you put yourself in check #26

Closed DatUser closed 4 years ago

DatUser commented 4 years ago

For this task, the assignee(s) has(ve) to change the implementation of move generation, indeed we forgot to check if a move put the team in check and it is a forbidden move in chess. So, add this check to each move generation and you're officially a bro.

Please, let everyone know about your progress.

Zuuki commented 4 years ago

What I am thinking to do is to :

Go through every generated move, make the move and then check if it put us in check.

Zuuki commented 4 years ago

Is working now, there could be some minor bugs or segfaults, if so please verify that every move has a PieceType