Skip to content

Instantly share code, notes, and snippets.

View tyronewantedsmok's full-sized avatar

Mikey Akamihe tyronewantedsmok

View GitHub Profile
import sys
import time
def load(seconds):
print('\nLoading', end='', flush=True)
for _ in range(seconds):
time.sleep(1)
print('.', end='', flush=True)
print()
@tyronewantedsmok
tyronewantedsmok / firearm.py
Created July 9, 2019 00:39
gun simulator
import time
def fire_gun(magazine_capacity, reserve_capacity, fire_rate, time_to_reload):
"""parameters including the numerator/denominator, fire rate, and reload speed"""
rounds = magazine_capacity
def reloading(time_to_reload):
import sys
import time
MSG_SYNOPSIS = '''13 December 2027. A year into the zombie apocalypse, you are the young leader of a small, demoralized group in the middle of nowhere, fighting for a chance to see
light at the end of the tunnel. By September of next year, your group has grown greatly but that does not mean that your community on the brink of collapse. You must the make
tough political decisions to determine how your community fares.\n'''
MSG_WINTER = '''\n29 January 2029. It is five weeks into winter and the season shows no mercy. A drought happened for a majority of the last fall and it devastated