I have a small command-line hold'em hand generator:
hole_cards = deck.draw(2)
h1, h2 = hole_cards
print(f'Your Hole Cards: {h1} | {h2}\n')
flop_cards = deck.draw(3)
f1, f2, f3 = flop_cards
print(f'Flop: {f1} | {f2} | {f3}\n')
turn_card = deck.draw(1)
t = turn_card[0]
print(f'Turn: {f1} | {f2} | {f3} | {t}\n')
river_card = deck.draw(1)
r = river_card[0]
print(f'River: {f1} | {f2} | {f3} | {t} | {r}\n')
Which outputs like this:
Your Hole Cards: ♦Four♦ | ♣Five♣
Flop: ♣Two♣ | ♣Ace♣ | ♦Two♦
Turn: ♣Two♣ | ♣Ace♣ | ♦Two♦ | ♠Seven♠
River: ♣Two♣ | ♣Ace♣ | ♦Two♦ | ♠Seven♠ | ♠Ace♠
Is there any way I could, instead of printing the turn and river after the flop, replace the word flop with turn and then river? I know that I can print the new cards on the same line, but I don't know how to replace the already-printed word "flop" or "turn"