Initial commit

This commit is contained in:
2014-09-30 17:09:22 +03:00
commit 1d8061ef10
18 changed files with 1345 additions and 0 deletions

12
king.cpp Normal file
View File

@@ -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;
}