Merge branch 'master' of github.com:Nebucatnetzer/tamagotchi

This commit is contained in:
Andreas Zweili 2015-07-12 21:17:41 +02:00
commit ee090b61a2
5 changed files with 10 additions and 0 deletions

View File

@ -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)

BIN
sound.mp3 Normal file

Binary file not shown.

View File

@ -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: