Skip to main content

Zombie Dice

Project description

Zombie Dice

This package is based on Zombie Dice - a popular dice-rolling, push-your-luck boardgame by Steve Jackson.

By running a series of simple functions within a Python environment, you can push your luck to get the most BRAAAAIINS!! 🧠 as possible. At the same time you need to avoid shotgun blasts 💥 while pushing your luck whether to pursue survivors 👣

You can also analyse your results by checking out the logs of your rounds and overall game.

  • STEP 1: Once initialised, players are required to pick 3 dice from the bucket by running pick_dice()
  • STEP 2: After they've picked the dice with specific colours, players are required to roll the dice by running roll_dice()
  • STEP 3: Player can pick more dice and re-roll if they choose to - remember footprints are included in the re-pick and re-throw, so keep in mind of the colours
  • STEP 4: Player can keep pick and roll untill the 13 dice are exhausted and the round finished or player can end the round when they feel like they've amounted enough points. Run end_round() to end the round and the next player can continue

The first player to reach a total of 13 points wins the game!

zombiedice_pic

For a formal how-to-play guide, check out the original website or BGG here.

Initiate in terminal

pip install zombie-dice

Play example

import zombie_dice

player_one = zombie_dice.Zombiedice(1)

player_one.pick_dice()

You have the following dice to roll:

Yellow
Green
Green
player_one.roll_dice()

Die 1: Yellow Brain
Die 2: Green Footprints
Die 3: Green Brain

You're score this round so far is 2!
You've rolled 1 footprint(s).
Do you wanna pick more dice to re-roll?
Remember, you can only pick three dice including one of the footprints.

player_one.roll_dice()

You have the following dice to roll:

Green
Yellow
Green

The footprints dice from the previous roll is:
Green

player_one.roll_dice()

Die 1: Green Footprints
Die 2: Yellow Footprints
Die 3: Green Shotgun

You're score this round so far is 1!
You've rolled 2 footprint(s).
Do you wanna pick more dice to re-roll?
Remember, you can only pick three dice including one of the footprints.

player_one.roll_dice()

Die 1: Red Shotgun
Die 2: Red Footprints
Die 3: Green Brain

You're score this round so far is 1!
You've rolled 1 footprint(s).
Do you wanna pick more dice to re-roll?

Remember, you can only pick three dice including one of the footprints.

player_one.end_round()

You're total score is: 1

Enjoy!

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_dice-0.6.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file zombie_dice-0.6.tar.gz.

File metadata

  • Download URL: zombie_dice-0.6.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for zombie_dice-0.6.tar.gz
Algorithm Hash digest
SHA256 40e44e174d8e77f6a9fae435b4c8ce4680186dd648123be499338c7f39da0cd8
MD5 b5a3d8e261c38644579b3b36877c109d
BLAKE2b-256 d6c14a3adbcaa7518ea0d920e882ebc479e013bfd312e90e09306a3c4b01b940

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