Esempio n. 1
0
def refresh_screen():
    os.system('clear')
    items = {'game': 'Battleship', 'tokens': add_commas(game_tokens)}
    if guesses:
        items['guesses'] = guesses
    items['username'] = game_username
    status = status_bar(**items)
    print(f"{status}\n")
Esempio n. 2
0
def refresh_screen():
    os.system('clear')
    items = {'game': 'Blackjack', 'tokens': add_commas(game_tokens)}
    if current_bet:
        items['current_bet'] = current_bet
    items['username'] = game_username
    status = status_bar(**items)
    print(f"{status}\n")
Esempio n. 3
0
def display_status_bar():
    status = status_bar(
        game="Crane Game",
        tokens=add_commas(game_tokens),
        username=game_username)
    status_window.addstr(0, 0, status)
    status_window.addstr(2, 0, "spacebar: lower crane, 'q': quit game")
    status_window.refresh()
Esempio n. 4
0
def refresh_screen():
    os.system('clear')
    items = {'game': 'Deal Or No Deal', 'tokens': add_commas(game_tokens)}
    if user_suitcase:
        items['your_suitcase'] = list(user_suitcase.keys())[0]
    items['username'] = game_username
    status = status_bar(**items)
    print(f"{status}\n")
Esempio n. 5
0
def refresh_screen():
    os.system('clear')
    items = {
        'game': 'Leaderboard',
        'tokens': add_commas(game_tokens),
        'rank': rank
    }
    items['username'] = game_username
    status = status_bar(**items)
    print(f"{status}\n")
Esempio n. 6
0
def refresh_screen():
    os.system('clear')
    items = {
        'game': 'Speedcheck',
        'tokens': add_commas(game_tokens),
        'level': level
    }
    items['username'] = game_username
    status = status_bar(**items)
    print(f"{status}\n")
Esempio n. 7
0
def refresh_screen():
    os.system('clear')
    items = {'game': 'Poker', 'tokens': add_commas(game_tokens)}
    items['username'] = game_username
    status = status_bar(**items)
    print(f"{status}\n")