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


Python Deck.setCards方法代码示例

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


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

示例1: initDecks

# 需要导入模块: import Deck [as 别名]
# 或者: from Deck import setCards [as 别名]
	def initDecks(self):
		#Ivan's favorite team
		DreamTeamIvan = Deck()
		DreamTeamIvan.name = "DreamTeamIvan"
		DreamTeamIvan.setCards([self.gc("Charizard"),self.gc("Pidgeot"),self.gc("Chansey"),self.gc("Lapras"),self.gc("Poliwhirl"),self.gc("Dragonite"),self.gc("Hypno"),self.gc("Tangela"),self.gc("Nidoqueen"),self.gc("Gyarados")])
		
		#Vilhelm's favorite team
		DreamTeamVilhelm = Deck()
		DreamTeamVilhelm.name = "DreamTeamVilhelm"
		DreamTeamVilhelm.setCards([self.gc("Pidgeot"),self.gc("Muk"),self.gc("Chansey"),self.gc("Mewtwo"),self.gc("Alakazam"),self.gc("Sandslash"),self.gc("Hypno"),self.gc("Machamp"),self.gc("Blastoise"),self.gc("Kangaskhan")])

		#Agust's favorite team
		DreamTeamAgust = Deck()
		DreamTeamAgust.name = "DreamTeamAgust"
		DreamTeamAgust.setCards([self.gc("Venusaur"),self.gc("Haunter"),self.gc("Alakazam"),self.gc("Gengar"),self.gc("Pidgeot"),self.gc("Hitmonlee"),self.gc("Wartortle"),self.gc("Muk"),self.gc("Kangaskhan"),self.gc("Gyarados")])

		#Saevar's favorite team
		DreamTeamSaevar = Deck()
		DreamTeamSaevar.name = "DreamTeamSaevar"
		DreamTeamSaevar.setCards([self.gc("Alakazam"),self.gc("Gengar"),self.gc("Machamp"),self.gc("Charizard"),self.gc("Blastoise"),self.gc("Raichu"),self.gc("Victreebell"),self.gc("Gyarados"),self.gc("Pidgeotto"),self.gc("Hitmonchan")])

		#Arni's favorite team
		DreamTeamArni = Deck()
		DreamTeamArni.name = "DreamTeamArni"
		DreamTeamArni.setCards([self.gc("Charizard"),self.gc("Blastoise"),self.gc("Venusaur"),self.gc("Machamp"),self.gc("Alakazam"),self.gc("Butterfree"),self.gc("Arbok"),self.gc("Mewtwo"),self.gc("Dragonite"),self.gc("Kangaskhan")])

		#The best according to 45 minutes of data collection on the 25/03/14
		TheElite = Deck()
		TheElite.name = "TheElite"
		TheElite.setCards([self.gc("Pidgeot"),self.gc("Sandslash"),self.gc("Hypno"),self.gc("Fearow"),self.gc("Mewtwo"),self.gc("Slowbro"),self.gc("Dragonite"),self.gc("Machamp"),self.gc("Blastoise"),self.gc("Vileplume")])

		#the first 10 of ash's pokemon according to the anime
		TeamAsh = Deck()
		TeamAsh.name = "TeamAsh"
		TeamAsh.setCards([self.gc("Pikachu"),self.gc("Butterfree"),self.gc("Pidgeot"),self.gc("Bulbasaur"),self.gc("Charizard"),self.gc("Squirtle"),self.gc("Kingler"),self.gc("Primeape"),self.gc("Muk"),self.gc("Tauros")])

		#only cute pokemon
		TheCuties = Deck()
		TheCuties.name = "TheCuties"
		TheCuties.setCards([self.gc("Wigglytuff"),self.gc("Eevee"),self.gc("Dewgong"),self.gc("Ninetales"),self.gc("Jigglypuff"),self.gc("Clefairy"),self.gc("Oddish"),self.gc("Ponyta"),self.gc("Vulpix"),self.gc("Chansey")])

		#Only water and fighting pokemon kinda
		FishAndFighters = Deck()
		FishAndFighters.name = "FishAndFighters"
		FishAndFighters.setCards([self.gc("Goldeen"),self.gc("Starmie"),self.gc("Seaking"),self.gc("Shellder"),self.gc("Poliwhirl"),self.gc("Poliwrath"),self.gc("Hitmonlee"),self.gc("Hitmonchan"),self.gc("Machop"),self.gc("Machamp")])

		#The legendairy pokemon
		TheLegends = Deck()
		TheLegends.name = "TheLegends"
		TheLegends.setCards([self.gc("Mew"),self.gc("Mewtwo"),self.gc("Moltres"),self.gc("Zapdos"),self.gc("Articuno"),self.gc("Dragonite"),self.gc("Dragonair"),self.gc("Aerodactyl"),self.gc("Omastar"),self.gc("Kabutops")])

		#only flying types
		SkyTerror = Deck()
		SkyTerror.name = "SkyTerror"
		SkyTerror.setCards([self.gc("Pidgey"),self.gc("Pidgeotto"),self.gc("Pidgeot"),self.gc("Zapdos"),self.gc("Articuno"),self.gc("Moltres"),self.gc("Farfetch'd"),self.gc("Aerodactyl"),self.gc("Spearow"),self.gc("Fearow")])

		#only starter pokemons and their evolved forms
		TheStarters = Deck()
		TheStarters.name = "TheStarters"
		TheStarters.setCards([self.gc("Pikachu"),self.gc("Bulbasaur"),self.gc("Ivysaur"),self.gc("Venusaur"),self.gc("Charmander"),self.gc("Charmeleon"),self.gc("Charizard"),self.gc("Squirtle"),self.gc("Wartortle"),self.gc("Blastoise")])

		#only big pokemons
		TheBigOnes = Deck()
		TheBigOnes.name = "TheBigOnes"
		TheBigOnes.setCards([self.gc("Snorlax"),self.gc("Dragonite"),self.gc("Gyarados"),self.gc("Kangaskhan"),self.gc("Tentacruel"),self.gc("Zapdos"),self.gc("Moltres"),self.gc("Articuno"),self.gc("Kabutops"),self.gc("Lapras")])

		#psychic and fire pokemon
		MindFire = Deck()
		MindFire.name = "MindFire"
		MindFire.setCards([self.gc("Abra"),self.gc("Kadabra"),self.gc("Alakazam"),self.gc("Hypno"),self.gc("Drowzee"),self.gc("Ponyta"),self.gc("Moltres"),self.gc("Rapidash"),self.gc("Charmeleon"),self.gc("Vulpix")])

		#grass and normal pokemon
		MoonGarden = Deck()
		MoonGarden.name = "MoonGarden"
		MoonGarden.setCards([self.gc("Clefairy"),self.gc("Clefable"),self.gc("Chansey"),self.gc("Zubat"),self.gc("Golbat"),self.gc("Paras"),self.gc("Parasect"),self.gc("Oddish"),self.gc("Gloom"),self.gc("Vileplume")])

		#only bug pokemon
		BugParadise = Deck()
		BugParadise.name = "BugParadise"
		BugParadise.setCards([self.gc("Venonat"),self.gc("Venomoth"),self.gc("Caterpie"),self.gc("Metapod"),self.gc("Butterfree"),self.gc("Weedle"),self.gc("Kakuna"),self.gc("Beedrill"),self.gc("Pinsir"),self.gc("Scyther")])

		#Only pink and purple pokemon
		PinkAndPurple = Deck()
		PinkAndPurple.name = "PinkAndPurple"
		PinkAndPurple.setCards([self.gc("Slowpoke"),self.gc("Slowbro"),self.gc("Koffing"),self.gc("Weezing"),self.gc("Gastly"),self.gc("Haunter"),self.gc("Gengar"),self.gc("Grimer"),self.gc("Muk"),self.gc("NidoranM")])

		#thunder and grass pokemon
		ElectricForest = Deck()
		ElectricForest.name = "ElectricForest"
		ElectricForest.setCards([self.gc("Bellsprout"),self.gc("Weepinbell"),self.gc("Victreebell"),self.gc("Exeggcute"),self.gc("Exeggutor"),self.gc("Electabuzz"),self.gc("Jolteon"),self.gc("Pikachu"),self.gc("Raichu"),self.gc("Vileplume")])

		#only pokemon that are made out of rock and metal
		RockAndMetal = Deck()
		RockAndMetal.name = "RockAndMetal"
		RockAndMetal.setCards([self.gc("Porygon"),self.gc("Magnemite"),self.gc("Magneton"),self.gc("Voltorb"),self.gc("Electrode"),self.gc("Rhyhorn"),self.gc("Rhydon"),self.gc("Geodude"),self.gc("Graveler"),self.gc("Golem")])

		self.decks = {
		1 	: TeamAsh,
		2 	: TheCuties,
		3 	: FishAndFighters,
#.........这里部分代码省略.........
开发者ID:ivanbjarni,项目名称:PokeDevs,代码行数:103,代码来源:Presets.py


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