Home
last modified time | relevance | path

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

/plugin/pgn4web/pgn4web/libs/garbochess/
Dgarbochess.js83 var pieceType = g_board[from] & 0x7;
84 var result = ["", "", "N", "B", "R", "Q", "K", ""][pieceType];
95 (g_board[moveFrom] & 0x7) == pieceType) {
114 } else if (pieceType == piecePawn && (g_board[to] != 0 || (move & moveflagEPC))) {
475 var pieceType = piece & 0x7;
476 score = (captured << 5) - pieceType;
511 var pieceType = g_board[moves[i] & 0xFF] & 0x7;
513 moveScores[i] = (captured << 5) - pieceType;
632 var pieceType = ourPiece & 0x7;
633 if (pieceType < piecePawn || pieceType > pieceKing) return false;
[all …]