henrijsprincis / simpleChessEngine

Chess Engine using alpha beta pruning, minimax and hashing
0 stars 0 forks source link

Undo not behaving as expected in branch 6-improve-move-input-ux #9

Closed marleysudbury closed 2 years ago

marleysudbury commented 2 years ago

Related to #6.

Undo move seems to only undo the computers moves. This means some code has probably been deleted which was important. If attempting to undo past the point of the opponent's first move, a segmentation fault occurs.

marleysudbury commented 2 years ago
Screenshot 2022-06-17 at 23 04 25

It can also cause pieces to disappear.

marleysudbury commented 2 years ago

May be related to the fact that moves are not stored as expected in the move history:

Screenshot 2022-06-18 at 02 41 17