Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lonnen/astragalus
a utility for Cult of the Lamb's minigame Knucklebones
https://github.com/lonnen/astragalus
Last synced: about 1 month ago
JSON representation
a utility for Cult of the Lamb's minigame Knucklebones
- Host: GitHub
- URL: https://github.com/lonnen/astragalus
- Owner: lonnen
- License: mit
- Created: 2023-04-30T04:22:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-01T06:56:43.000Z (10 months ago)
- Last Synced: 2024-04-15T02:58:20.056Z (7 months ago)
- Language: Python
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
==========
ASTRAGALUS
==========An set of utilities for playing `Cult of the Lamb `_'s minigame `Knucklebones `_.
:Code: https://github.com/lonnen/astragalus
:Issues: https://github.com/lonnen/astragalus/issues
:Releases: https://pypi.org/project/astragalus/#history
:License: MIT; See LICENSEInstall
=======To install astragalus, run:
.. code-block:: shell
$ pip install git+https://github.com/lonnen/astragalus.git
Example Usage
=============Here's the basic idea:
.. code-block:: python
>>> from random import randint
>>> from astragalus import KnucklebonesBoard
>>> board = KnucklebonesBoard()
>>> column = 2
>>> dice_roll = randint(1, 6)
>>> board.push(column, dice_roll)
>>> print(board).. code-block:: python
"0006000000000000001"
Status
======The board is implemented with all the constraints necessary to make legal moves, but the game is
is not fully implemented. For the moment you'll need to implement rolling your own `d6` every round.