21 lines
387 B
Python
21 lines
387 B
Python
from aliens import alien_table
|
|
|
|
counter= 0
|
|
|
|
def count_up():
|
|
global counter
|
|
counter+= 1
|
|
# print(counter)
|
|
|
|
def count_down():
|
|
global counter
|
|
counter-= 1
|
|
# print(counter)
|
|
|
|
def transform():
|
|
if counter < 0:
|
|
print(alien_table(counter * -1))
|
|
elif counter == 0:
|
|
print(alien_table(counter))
|
|
elif counter > 0:
|
|
print(alien_table(counter))
|