Home
last modified time | relevance | path

Searched refs:IsSquareAttackable (Results 1 – 1 of 1) sorted by relevance

/plugin/pgn4web/pgn4web/libs/garbochess/
H A Dgarbochess.js1614 g_inCheck = IsSquareAttackable(g_pieceList[(g_toMove | pieceKing) << 4], them);
1617 if (IsSquareAttackable(g_pieceList[(them | pieceKing) << 4], g_toMove)) {
1678 if (IsSquareAttackable(from + 1, otherColor) ||
1679 IsSquareAttackable(from + 2, otherColor)) {
1701 if (IsSquareAttackable(from - 1, otherColor) ||
1702 IsSquareAttackable(from - 2, otherColor)) {
1809 if (IsSquareAttackable(g_pieceList[(pieceKing | (8 - g_toMove)) << 4], otherColor)) {
1851 g_inCheck = IsSquareAttackable(g_pieceList[(pieceKing | g_toMove) << 4], 8 - g_toMove);
1991 function IsSquareAttackable(target, color) { function