def updateEyesightCount(self) -> None:
self.eyesightCount = {c: [0] * 6 for c in self.colors}
p: Player
c: int
card: CardKnowledge
for p in self.game.players:
for c in p.hand:
card = cast(CardKnowledge, self.game.deck[c])
if card.suit is not None and card.rank is not None:
self.eyesightCount[card.suit][card.rank] += 1
elif card.color is not None and card.value is not None:
self.eyesightCount[card.color][card.value] += 1
评论列表
文章目录