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

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

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 Python code

As long as your Python implementation can find the library where you have installed it, programs need only import the package ojcardlib. Further details of the functions available are shown in the Python API document. A short example:

import ojcardlib as oj

deck = oj.CardList(52)

hand = oj.CardList(5)
for i in range(5):