Card game and simulation library and tools. Part of the OneJoker project.

Project maintained by Lee Daniel Crocker
Lee's blog is etceterology.

onejoker
CC-0: To the extent possible under law, I, Lee Daniel Crocker waive all copyright and related or neighboring rights to all creative works original to me.

Using the library in your C code

Blackjack functions

int ojb_total(oj_cardlist *p)

Returns the blackjack value of the given hand, negated if the total is “soft”. For example, the hand (7c 8d) would return 15, (5d Ah) would return -16, and (9d 7c Ac) would return 17.

Next: Miscellaneous functions