I am making a card game and I want to display the cards graphically with strings. However, with my current method that are placed underneath each other. How can I put them next to each other without messing up the visuals?
def display_card(card):
suit = card[0]
value = card[1]
graphic_card = (
'┌─────────┐\n'
'│{} │\n'
'│ │\n'
'│ │\n'
'│ {} │\n'
'│ │\n'
'│ │\n'
'│ {}│\n'
'└─────────┘'
).format(
format(value, ' <2'),
format(suit, ' <2'),
format(value, ' >2')
)
print(graphic_card)
cards= ["♥2", "♥3", "♥4"]
for card in cards:
display_card(card)