openpql-runner 0.3.0

A high-performance Rust implementation of Poker Query Language (PQL), enabling SQL-like queries for poker analysis and calculations. This project is a spiritual successor to the original Java implementation developed by Odds Oracle.
Documentation
1
2
3
4
5
6
7
8
9
use super::*;

// TODO: optimize
#[pqlfn]
pub fn best_hi_rating(ctx: &PQLFnContext, player: PQLPlayer, street: PQLStreet) -> PQLBoolean {
    let player_rating = hi_rating(ctx, player, street);

    (0..ctx.n_players).all(|i| player_rating >= hi_rating(ctx, i.into(), street))
}