This commit is contained in:
jandrews
2026-01-16 13:00:39 -05:00
parent 72928df0cc
commit ce69c6b474
5 changed files with 18 additions and 6 deletions

View File

@@ -1,11 +1,20 @@
from retro.game import Game
from dealer import Dealer
import json
dealer = Dealer((1, 1))
state = {
def play():
dealer = Dealer((1, 1))
state = {
"score": 0,
"options": "h to hit or s to stay",
}
game = Game([dealer], state)
game.play()
"options": "H to hit or F to stay",
}
game = Game([dealer], state)
game.play()
with open("result.json") as result_file:
json.dump(game.state)
if __name__ == '__main__':
play()