generated from mwc/project_game
21 lines
355 B
Python
21 lines
355 B
Python
from retro.game import Game
|
|
from dealer import Dealer
|
|
import json
|
|
|
|
def play():
|
|
dealer = Dealer((1, 1))
|
|
state = {
|
|
"score": 0,
|
|
"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()
|
|
|
|
|