utilities topic

These are some basic utility functions probably provided in some way by your languages standard libraries, but designed and optimized for this library.

Classes

OjRandom utilities
Simple implementation of xoshiro128++

Functions

ojBinomial(int n, int k) int utilities
Binomial coefficient for 0 <= n <= 64, 0 <= k <= 64 using lookup table
ojNextCombination(List<int> a, int n) bool utilities
Generate all k-combinations of n cards
ojShuffle<T>(List<T> items) → void utilities
Standard Fisher-Yates shuffle using our own PRNG.
ojSort<T extends Comparable>(List<T> a) → void utilities
Heapsort somewhat optimized for small sets, like a hand of cards.

Enums

Troolean utilities
Basic Klene / Priest three-valued logic