当前位置: 首页>>代码示例>>Python>>正文


Python Deck.drawhand方法代码示例

本文整理汇总了Python中Deck.Deck.drawhand方法的典型用法代码示例。如果您正苦于以下问题:Python Deck.drawhand方法的具体用法?Python Deck.drawhand怎么用?Python Deck.drawhand使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Deck.Deck的用法示例。


在下文中一共展示了Deck.drawhand方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: shipcard

# 需要导入模块: from Deck import Deck [as 别名]
# 或者: from Deck.Deck import drawhand [as 别名]
from CardTypes.shipcard import shipcard
from Discardpile import Discardpile


Basicship= shipcard('Nick\'s Ship', 0, 0 ,0, 8)
NicksDeck = Deck('Nick\'s Badass Mothafuckin Deck',[card_data.cards['Ensign'], card_data.cards['Ensign'], card_data.cards['Ensign'], card_data.cards['Ensign'],
            card_data.cards['Ensign'], card_data.cards['Ensign'], card_data.cards['Commander'], card_data.cards['William Riker'],card_data.cards['Lieutenant'],card_data.cards['Ensign']], Basicship)
PlayerNick = Player('Player Nick', NicksDeck, Basicship)

MaxinesDeck = Deck('Maxine\'s Wooftastic Deck', [card_data.cards['Duras'], card_data.cards['Jean Luc Picard'], card_data.cards['Commander'], card_data.cards['Jean Luc Picard'],
                card_data.cards['Warp Speed'], card_data.cards['Fire All Weapons'], card_data.cards['Commander'], card_data.cards['William Riker'],card_data.cards['Lieutenant'],card_data.cards['Ensign']], Basicship)
# MaxinesHand = Hand('Maxine\'s first hand', MaxinesDeck, Basicship)
# MaxinesDiscard = Discardpile(MaxinesHand)
PlayerMaxine = Player('Player Maxine', MaxinesDeck, Basicship)

print(NicksDeck.drawhand())

# NicksDiscard.addhand(None)
# print(NicksDiscard)


# print(card_data.cards['Jean Luc Picard'].flavortext)
# NicksDeck.printdeck()
# print(NicksDeck.countdeck())
# NicksDeck.changedeckname('Nick\'s REALLY Badass Mothafuckin Deck')
# NicksHand.calcstats()

# print(NicksHand.calcstats())
#TODO look for instances of self in drawcard

# NicksDeck.addcard(Ensign)
开发者ID:joshuaohana,项目名称:StarTrekDeck,代码行数:33,代码来源:main.py


注:本文中的Deck.Deck.drawhand方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。