A table game engine.
Project description
craps
A lightweight table game simulator built with python standard libraries.
·
Report Bug
·
Request Feature
Getting Started
The game engine is ready to roll. Let's get rolling.
Prerequisites
This package uses libraries that have been standard since python 2.7 and it will likely run on any python version you are using. If you experience any issues, please report a bug.
Installation
Install with pip (recommended)
pip install craps
Usage
Hang tight. Examples are on the way.
Roadmap
- Add Bet types to model.py
- Add place bets
- Add side bets
- Add the Yo first. That's fun.
- Strategy constructor / builder
- Logic layer to facilitate strategy construction in a low code environment. For example:
IFthe game puck is offANDI do not have a place bet,THENmake a place bet.IFthe game puck is onANDI do not have odds on a place or come bet,THENput f(x) odds on it.
- Logic layer to facilitate strategy construction in a low code environment. For example:
See the open issues for a full list of proposed features (and known issues).
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE.txt for more information.
Contact
Mike Hegarty - @mjhegarty - mike@petorca.com
Project Link: https://github.com/mhegarty/craps
Acknowledgments
- Thanks to @dhegarty19 for agreeing to celebrate our third aniversary at the casino.
- Big thanks to Othneil Drew for the awesome work on the best readme template
- pikpng.com for the logo image.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file craps-1.0.4.tar.gz.
File metadata
- Download URL: craps-1.0.4.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9970d8804a589764de039bf7335e1f2f51f90a607d5935f7baf352eb8e7d4c70
|
|
| MD5 |
0209e7fe500ef17769305e19ca554dfd
|
|
| BLAKE2b-256 |
70d1f583f330dcd7c7182737501cf4dcbd914c1d39aa0b68a85f7c4c74beea2f
|
File details
Details for the file craps-1.0.4-py3-none-any.whl.
File metadata
- Download URL: craps-1.0.4-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d020ff6dfdf48488f1a11884d7295bdd204b7bf41750945ed332dbf767dcbb79
|
|
| MD5 |
085f2143559c311adc410faadf04f289
|
|
| BLAKE2b-256 |
143e54db50a139141ab8e76bb7c74d7f8ab11ec4afedbf454e2516a375cf769c
|