本文整理汇总了Python中Action.Action.new_check方法的典型用法代码示例。如果您正苦于以下问题:Python Action.new_check方法的具体用法?Python Action.new_check怎么用?Python Action.new_check使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Action.Action
的用法示例。
在下文中一共展示了Action.new_check方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_opening_bet_action
# 需要导入模块: from Action import Action [as 别名]
# 或者: from Action.Action import new_check [as 别名]
def get_opening_bet_action(self, request, game, hand_state):
"""Get Action in response to open bet request"""
self.display_hand_state(request, game, hand_state)
user_selection = self._newUserSelection()
user_selection.add_option("c", "check", Action.new_check())
user_selection.add_option("b", "bet", Action.new_bet(request.amount))
return user_selection.get_user_selection()
示例2: get_option_action
# 需要导入模块: from Action import Action [as 别名]
# 或者: from Action.Action import new_check [as 别名]
def get_option_action(self, request, game, hand_state):
"""Get Action in request to option request"""
self.display_hand_state(request, game, hand_state)
user_selection = self._newUserSelection()
user_selection.add_option("c",
"check",
Action.new_check())
user_selection.add_option("r",
"raise {}".format(request.raise_amount),
Action.new_raise(request.raise_amount))
return user_selection.get_user_selection()