A Zombie Dice Game Engine Library and Executable
Project description
Zombie Nom Nom
This is a game engine that is modeled after the popular board game zombie dice. This is meant for practice to be able to be messed with and explored.
Useful Links
Links to result of code coverage and pytest of latest builds.
Installation
pip install zombie_nomnom
We require at least python 3.10 to be able to run properly.
Usage
You can use the zombie_nomnom engine directly in code like this:
...
from zombie_nomnom import ZombieDieGame, DrawDice, Score
draw_three = DrawDice(3)
score_hand = Score()
game = ZombieDieGame(players=["Player One", "Player Two])
logger.info(game.round)
result = game.process_command(draw_three)
logger.info(result)
result = game.process_command(score_hand)
logger.info(result)
loger.info(game.round)
# ... keep playing game below
Or you can play it using the CLI that is already baked into the package:
> zombie-nomnom cli
Enter Player Name: Jeffery
Add Another Player? [y/N]:
Players: Jeffery (0)
Currently Playing Jeffery, Hand: Brains(0), Feet(0), Shots(0), Dice Remaining: 13
0) Exit
1) Draw dice
2) Score hand
Select Item (0-2): 1
Contribution
For details of conduct and expactations please refer to CONTRIBUTION.md
Pull requests will be pending review of at least one maintainer.
Pull requests are required to have finished the template checklist before they will be reviewed by a maintainer.
All code is formatted with the black formatter and we expect types and may run mypy to check that your code is properly typed as expected.
Names should make sense and be self descriptive of the proposed changes.
Project details
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
File details
Details for the file zombie_nomnom-0.3.1.tar.gz
.
File metadata
- Download URL: zombie_nomnom-0.3.1.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14db255bab3d90ef58c733b07127b0a3b34a10ac0c9dd2e27c375bd41ef55601 |
|
MD5 | 2523acd244ba4190f2f5e87982ceff11 |
|
BLAKE2b-256 | 125764b63e4fc70b4b99ed21ece66b5036079da6f7ea5f10a4329db02461d9f5 |
File details
Details for the file zombie_nomnom-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: zombie_nomnom-0.3.1-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 371cea8efecd53d1e8977415399b5333bfae14a96cd3e780d03809fd4c95d4ce |
|
MD5 | ba9a82ee16e549cc711b4fd1085df9d4 |
|
BLAKE2b-256 | 24ea9f17854e3d46cc8011709797f49ee82e051af8871ec2d3f2588573805786 |