Home
last modified time | relevance | path

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

/plugin/pgn4web/pgn4web/libs/garbochess/
H A Dgarbochess.js1814 var kingPos = g_pieceList[(pieceKing | (8 - g_toMove)) << 4];
1816 if (ExposesCheck(from, kingPos)) {
1822 if (ExposesCheck(epcEnd, kingPos)) {
1950 function ExposesCheck(from, kingPos){ argument
1951 var index = kingPos - from + 128;
1955 var pos = kingPos + delta;
1959 if (((piece & (g_board[kingPos] ^ 0x18)) & 0x18) == 0)
1963 var backwardIndex = pos - kingPos + 128;