@@ -0,0 +1,12 @@
#include "king.h"
void king::move(int x, int y)
{
this->x = x;
this->y = y;
}
bool king::can_castle(int choice)
return choice == 1 ? !castled_left : !castled_right;
The note is not visible to the blocked user.