Exemple #1
0
'''

print("===========================================================")
print(title)
print("===========================================================")
print()
print("table의 크기를 입력하세요. 2부터 9까지의 자연수가 지원됩니다.")
print("문자를 입력하시면 scoreboard가 출력됩니다.\n")

score = Score()
flag = 0

try:
    table = Table()
except ValueError:
    score.print_scoreboard()
else:
    os.system("clear")
    print("===========================================================")
    print(title)
    print("===========================================================\n")
    table.print_table()

    try:
        print(" best score : %s" %score.get_best_score())
    except:
        print(" best score : 0")

    while table.can_move():
        print("\n Pick a move(wsad)")
        usrInput = getch.getch()