class Candidate - aharalabMeiji/fireplaceAharaLab GitHub Wiki
utils.py
class Candidate(object)
self.turn# ターン数
self.card# プレーやアタックするカード(ヒーローやヒーローパワーもアリ)
self.card2# 「すべてのミニオンに3ダメージ、または、一つのミニオンに5ダメージ」というときの選択肢
self.type# BlockType.PLAY, BlockType.ATTACK, BlockType.POWER, ExceptionPlay.TURNENDのいずれか
self.target# 対象となるカード(ヒーローも含む)
self.score# エージェント作成用の変数
self.notes# エージェント作成用の変数
def getCandidate(mygame,_smartCombat=True,_includeTurnEnd=False):#
""" ゲーム場面に対して、可能な着手をリストで返す。リストの要素はCandidate型 """
def executeAction(mygame, action: Candidate, debugLog=True):#
""" Candidate型変数actionを実行する。 """