generated from mwc/project_game
fykfyk
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user