This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import time | |
def load(seconds): | |
print('\nLoading', end='', flush=True) | |
for _ in range(seconds): | |
time.sleep(1) | |
print('.', end='', flush=True) | |
print() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |