function isPieceOnMousePosition(pos){
        var boardPos = worldToBoard(pos);
        if(boardPos){
            console.log('board[',boardPos[0],'][', boardPos[1],'] = ', board[boardPos[0]][boardPos[1]]);
        }
        if(boardPos && board[boardPos[0]][boardPos[1]] !== 0){
            return true;
        }
        return false;
    }
/**
     * Checks whether there is a piece at the mouse's position.
     * @param {Array} pos The coordinates of the mouse position in the scene.
     * return {boolean}.
     */
Checks whether there is a piece at the mouse's position.
@param {Array} pos The coordinates of the mouse position in the scene.
return {boolean}.
Checks whether there is a piece at the mouse ' s position . @param { Array } pos The coordinates of the mouse position in the scene . return { boolean } .
function isPieceOnMousePosition(pos){
        var boardPos = worldToBoard(pos);
        if(boardPos){
            console.log('board[',boardPos[0],'][', boardPos[1],'] = ', board[boardPos[0]][boardPos[1]]);
        }
        if(boardPos && board[boardPos[0]][boardPos[1]] !== 0){
            return true;
        }
        return false;
    }
function isPieceOnMousePosition ( pos ) { var boardPos = worldToBoard ( pos ) ; if ( boardPos ) { console . log ( 'board[' , boardPos [ 0 ] , '][' , boardPos [ 1 ] , '] = ' , board [ boardPos [ 0 ] ] [ boardPos [ 1 ] ] ) ; } if ( boardPos && board [ boardPos [ 0 ] ] [ boardPos [ 1 ] ] !== 0 ) { return true ; } return false ; }
Checks whether there is a piece at the mouse's position.
Checks whether there is a piece at the mouse ' s position .