blackjack-simulator:用python模拟的二十一点纸牌游戏

时间:2024-05-02 23:37:55
【文件属性】:

文件名称:blackjack-simulator:用python模拟的二十一点纸牌游戏

文件大小:139KB

文件格式:ZIP

更新时间:2024-05-02 23:37:55

JupyterNotebook

大酒杯模拟器 一个简单的纯python模拟器,用于纸牌二十一点。 您可以通过首先与玩家一起初始化玩家来模拟游戏。 from blackjack import Player , Dealer , Table , Game , DealerStrat jack = Player ( strategy = DealerStrat ( max_hit_value = 18 ), name = 'Jack' ) zack = Player ( strategy = DealerStrat ( max_hit_value = 17 ), name = 'Zack' ) cody = Player ( strategy = DealerStrat ( max_hit_value = 16 ), name = 'Cody' ) dealer = Dealer ( strategy = DealerSt


【文件预览】:
blackjack-simulator-main
----README.md(2KB)
----__init__.py(0B)
----BlackJack.ipynb(26KB)
----results.png(12KB)
----example.gif(269KB)
----.DS_Store(6KB)
----blackjack.py(11KB)

网友评论