Example #1
0
void initTable() {
	initAttacks(false);
	initAttacks(true);
	initKingAttacks();
	initGoldAttacks();
	initSilverAttacks();
	initPawnAttacks();
	initKnightAttacks();
	initLanceAttacks();
	initSquareRelation();
	initAttackToEdge();
	initBetweenBB();
	initCheckTable();
	initSquareDistance();

	Book::init();
	initSearchTable();
}
Example #2
0
File: init.cpp Project: ixixi/apery
void initTable() {
	initAttacks(false);
	initAttacks(true);
	initKingAttacks();
	initGoldAttacks();
	initSilverAttacks();
	initPawnAttacks();
	initKnightAttacks();
	initLanceAttacks();
	initSquareRelation();
	initAttackToEdge();
	initBetweenBB();
	initCheckTable();

	auto eval = std::unique_ptr<Evaluater>(new Evaluater);
	eval->init();

	Book::init();
	initSearchTable();
}