Files
blackjack/src/pyjack/main.py

20 lines
377 B
Python
Raw Normal View History

2025-10-29 21:01:03 +01:00
import os
2025-10-26 19:41:26 +01:00
from pyjack.game import Game
2025-10-29 21:01:03 +01:00
2025-10-26 19:41:26 +01:00
if __name__ == "__main__":
2025-10-29 21:01:03 +01:00
os.system("clear")
print("pyjack by cerberus")
print("do you wanna play a round??")
2025-11-08 21:31:36 +01:00
# Create game instance with the player and dealer
2025-10-29 21:01:03 +01:00
game = Game()
2025-11-08 21:31:36 +01:00
# Play the game
2025-11-06 19:44:05 +01:00
try:
while True:
game.play_round()
except KeyboardInterrupt:
print("End Program")