Skip to main content

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.

Test and Deploy Docs

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

zombie_nomnom-1.1.0.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zombie_nomnom-1.1.0-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file zombie_nomnom-1.1.0.tar.gz.

File metadata

  • Download URL: zombie_nomnom-1.1.0.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for zombie_nomnom-1.1.0.tar.gz
Algorithm Hash digest
SHA256 65a949cd15f2ff1e2ac0c7ff93cae9d1e4a17dfc7876b7f22b03735d0f81fa0e
MD5 7ef9db887512bc1cbee9f8a5395f7946
BLAKE2b-256 231c7d06149a399fcd678979911dc182e9f8709165b38ac304ec4b9e33c8147d

See more details on using hashes here.

File details

Details for the file zombie_nomnom-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: zombie_nomnom-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for zombie_nomnom-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b42adf6ecc06e3492390e10270ea6f546b6ccebdc2947c84471ab992c37027b
MD5 0a506ae7c77af2d8db98cdc338ebf3e1
BLAKE2b-256 c164efc59d0ee3618f4608e3c73c0870de61079967d525698ec192014569162b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page