move_{do,undo}: FIX forgotten king[] update, add few bug_on()

This commit is contained in:
2024-03-23 17:37:40 +01:00
parent 798047b84d
commit d0279125ae
3 changed files with 29 additions and 9 deletions

View File

@@ -14,7 +14,9 @@
#ifndef MOVE_DO_H
#define MOVE_DO_H
//extern pos_t *move_do(pos_t *pos, move_t *move);
//extern void move_undo(pos_t *pos, move_t *move);
#include "position.h"
pos_t *move_do(pos_t *pos, const move_t move, state_t *state);
pos_t *move_undo(pos_t *pos, const move_t move, const state_t *state);
#endif /* MOVE_DO_H */