Data Scientist and Machine Learning Practitioner
Python Developer (experiened with Flask frameworks)
View My LinkedIn
View My Articles on Medium
A simple python text-based game of survival, resource management and strategic deision making.
Zombie Survival is a game designed for 1 to 4 players, where each player is a member of a camp collecting resource and fighting against zombie attacks. The objective is survive for ten days by gathering resource on scavenging missions during the day and defending against zombie attacks during the night. Any players remaining at the end of the ten days win.
The game was built using fundamentals of Object-Orientated Programming. Models are created for Players, Locations and Camp which each inherits resource attributes from an overall GameEntity class and then adds specific attributes for each class. Design operates from small functions for gameplay mechanics, larger functions to operate the 4 main stages of gameplay and a master function to runs the game loop.
Players must scavenge and manage 3 key resources:
Health Chart:
At the start of the game the camp begins with:
Throughout the game if there are zombie attacks, player health issues and daily food consumption. In each instance camp resources are the first to be used. If the camp don’t not have sufficent resources then player may use their own personal resources. Player may choose to help other players who do not have personal resources, but do not have to.
There are 12 game locations with a variety of different resources. At the beginning of the game, locations are randomly selected as Easy (4 locations), Medium (4 locations) and Hard (4 locations).
During the day players choose locations of varying difficulty to collect resources. Outcomes are decided by rolling of a d6 dice.
Mission Roll Chart:
At the end of the day each player must consume 1 food token or lose 1 health point.
Zombie Attacks - If zombies attack player must fight back with weapons, a weapon token must be used for every zombie that attacks. If there are insufficent weapons to fight back then a random player dies.
Daily Event Roll Chart: