8000 GitHub - koaning/dicekit: Just some nice dice in Python
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

koaning/dicekit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dicekit logo

dicekit

Just some nice Dice objects in Python. We mainly target Marimo for now.

Install

uv pip install dicekit

Usage

There are many ways to construct a Dice object, but a simple one is to specify the number of sides.

from dicekit import Dice

d6 = Dice.from_sides(6)
d8 = Dice.from_sides(8)

The nice thing about these objects is their representation in the notebook.

Dice output

To learn more, we recommend checking out this Marimo notebook. It shows the implementation, but also the flexibility of the objects. You can also copy the notebook and play around with it straight from the browser.

About

Just some nice dice in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0