Merge branch 'master' of github.com:Nebucatnetzer/tamagotchi
This commit is contained in:
commit
ee090b61a2
Binary file not shown.
Binary file not shown.
|
@ -1,9 +1,17 @@
|
|||
# imports the global variables
|
||||
import pet_variables
|
||||
# imports the time library needed to delay certain functions
|
||||
import time
|
||||
# imports the random library needed to generate a random number for
|
||||
# the guessing game
|
||||
from random import randint
|
||||
# imports the os library needed to clear the terminal
|
||||
import os
|
||||
# imports the pygame library needed to play the sound in the
|
||||
# poking function
|
||||
from pygame import mixer
|
||||
|
||||
|
||||
# variables needed for the guessing game
|
||||
secret = randint(1, 10)
|
||||
|
||||
|
|
|
@ -32,6 +32,8 @@ while pet_functions.is_alive():
|
|||
print("1: Feeding, 2: Playing, 3: Stroke Pet,")
|
||||
print("4: Stroking, 5: Show Stats,")
|
||||
# Start the chosen activity and go back to the activity selector.
|
||||
print("1: Feeding, 2: Playing, 3: Stroke Pet, 4: Show Stats")
|
||||
# Start the chosen activity and go back to the activity selector.
|
||||
try:
|
||||
chosen_activity = int(input("Choose the desired activity:"))
|
||||
if chosen_activity == 1:
|
||||
|
|
Reference in New Issue