Home
last modified time | relevance | path

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

/plugin/pgn4web/pgn4web/libs/garbochess/
H A Dgarbochess.js83 var pieceType = g_board[from] & 0x7;
95 (g_board[moveFrom] & 0x7) == pieceType) {
475 var pieceType = piece & 0x7;
476 score = (captured << 5) - pieceType;
513 moveScores[i] = (captured << 5) - pieceType;
632 var pieceType = ourPiece & 0x7;
633 if (pieceType < piecePawn || pieceType > pieceKing) return false;
640 if (pieceType == piecePawn) {
2327 for (var pieceType = pieceBishop; pieceType <= pieceQueen; pieceType++) {
2352 for (var pieceType = pieceBishop; pieceType <= pieceKing; pieceType++) {
[all …]