blackjack.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:gym 作者: openai 项目源码 文件源码
def __init__(self, natural=False):
        self.action_space = spaces.Discrete(2)
        self.observation_space = spaces.Tuple((
            spaces.Discrete(32),
            spaces.Discrete(11),
            spaces.Discrete(2)))
        self._seed()

        # Flag to payout 1.5 on a "natural" blackjack win, like casino rules
        # Ref: http://www.bicyclecards.com/how-to-play/blackjack/
        self.natural = natural
        # Start the first game
        self._reset()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号