コード例 #1
0
ファイル: aMAZE.py プロジェクト: lelandjansen/aMAZE
def leaderboards():

    os.system("clear")

    # Load the leaderboard
    users = Leaderboard()
    users.readLeaderboard()

    print("===========================")
    print("=          aMAZE          =")
    print("===========================")
    print("=      Leaderboards       =")
    print("===========================")
    print()
    print()
    print("|# |   Name    |  Score   |")
    print("===========================")

    # Print the leaderboard
    print(users)

    print("1) Back ")

    next_Menu = None

    # Get the next menu from the user
    while next_Menu == None:
        next_Menu = get_ch().lower()

        if next_Menu == '1':
            os.system("clear")
            return MENU_MAIN
        else:
            next_Menu = None
コード例 #2
0
ファイル: aMAZE.py プロジェクト: lelandjansen/aMAZE
def game_over(score):
    os.system("clear")

    print("===========================")
    print("=          aMAZE          =")
    print("===========================")
    print("=       GAME OVER :(      =")
    print("===========================")
    print("= Enter your Name         =")
    print("=       10 Characters max =")
    print("===========================")

    # Get the users name
    name = input()

    # Update the leaderboard with the user that just played
    leaderboard = Leaderboard()
    leaderboard.readLeaderboard()
    leaderboard.addUser(name, score)
    leaderboard.writeLeaderboard()
コード例 #3
0
ファイル: aMAZE.py プロジェクト: lelandjansen/aMAZE
def game_over(score):
    os.system("clear")

    print("===========================")
    print("=          aMAZE          =")
    print("===========================")
    print("=       GAME OVER :(      =")
    print("===========================")
    print("= Enter your Name         =")
    print("=       10 Characters max =")
    print("===========================")

    # Get the users name
    name = input()

    # Update the leaderboard with the user that just played
    leaderboard = Leaderboard()
    leaderboard.readLeaderboard()
    leaderboard.addUser(name, score)
    leaderboard.writeLeaderboard()
コード例 #4
-2
ファイル: aMAZE.py プロジェクト: lelandjansen/aMAZE
def leaderboards():

    os.system("clear")

    # Load the leaderboard
    users = Leaderboard()
    users.readLeaderboard()

    print("===========================")
    print("=          aMAZE          =")
    print("===========================")
    print("=      Leaderboards       =")
    print("===========================")
    print()
    print()
    print("|# |   Name    |  Score   |")
    print("===========================")

    # Print the leaderboard
    print(users)

    print("1) Back ")

    next_Menu = None

    # Get the next menu from the user
    while next_Menu == None:
        next_Menu = get_ch().lower()

        if next_Menu == '1':
            os.system("clear")
            return MENU_MAIN
        else:
            next_Menu = None