-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprintMessages.py
36 lines (32 loc) · 896 Bytes
/
printMessages.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import os
import input
def printLifeLost():
os.system('clear')
print("YOU LOST A LIFE")
for row in range(6):
for col in range(7):
if row==0 and col%3!=0 or row==1 and col%3==0 or row-col==2 or row+col==8:
print('*',end="")
else:
print(" ",end=" ")
print()
print("Press SPACE to continue")
while(1):
char = input.get()
if char == " ":
return
def printGameOver():
os.system('clear')
print("GAME OVER")
for row in range(6):
for col in range(7):
if row==0 and col%3!=0 or row==1 and col%3==0 or row-col==2 or row+col==8:
print('*',end="")
else:
print(" ",end=" ")
print()
print("Press SPACE to END GAME")
while(1):
char = input.get()
if char == " ":
return