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

and clearing the terminal before displaying the stats to make it a bit
more readable
This commit is contained in:
Nebucatnetzer 2015-07-10 12:14:06 +02:00
commit 60c723522c
3 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import pet_variables import pet_variables
import time import time
from random import randint from random import randint
import os
# Pictures and symboles used ingame # Pictures and symboles used ingame
cat = "(=^o.o^=)__" cat = "(=^o.o^=)__"
@ -12,6 +13,7 @@ secret = randint(1, 10)
def pet_stats(): def pet_stats():
os.system('clear') #for Linux
print(pet_variables.pet_name) print(pet_variables.pet_name)
print(pet_variables.pet_photo) print(pet_variables.pet_photo)
print("Status: " + pet_variables.pet_status) print("Status: " + pet_variables.pet_status)
@ -111,6 +113,7 @@ def decrease_stats():
# and health. # and health.
def stroking(): def stroking():
os.system('clear') #for Linux
print() print()
print("You're stroking the back of your pet gently.") print("You're stroking the back of your pet gently.")
print("It makes comforting noises and leans against your hand.") print("It makes comforting noises and leans against your hand.")