dist-esnext/Board.js
function getJumpPosition(from, toJump, board) {
    const jumpXY = getJumpXY(from, toJump);
    if (!hasPosition(board, jumpXY))
        return;
    const jumpPosition = getPositionFromBoard(board, jumpXY);
    if (Position.hasPiece(jumpPosition))
        return;
    return jumpPosition;
}
function getJumpPosition(from, toJump, board) {
    const jumpXY = getJumpXY(from, toJump);
    if (!hasPosition(board, jumpXY))
        return;
    const jumpPosition = getPositionFromBoard(board, jumpXY);
    if (Position.hasPiece(jumpPosition))
        return;
    return jumpPosition;
}
function getJumpPosition ( from , toJump , board ) { const jumpXY = getJumpXY ( from , toJump ) ; if ( ! hasPosition ( board , jumpXY ) ) return ; const jumpPosition = getPositionFromBoard ( board , jumpXY ) ; if ( Position . hasPiece ( jumpPosition ) ) return ; return jumpPosition ; }
Returns the target board position from a jump if this position exists and is empty.
Returns the target board position from a jump if this position exists and is empty .