How to use the deprecated.obsolete.src.playdom.Card function in Deprecated

To help you get started, we’ve selected a few Deprecated examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github agroce / tstl / deprecated / obsolete / src / playdom.py View on Github external
#    council_room,
#    cutpurse,
#    embargo, /* choice1 = supply# */
#    feast, /* choice1 is supply # of card gained) */
#    gardens,
#    great_hall,
#    mine, /* choice1 is hand# of money to trash, choice2 is supply# of


MAX_PLAYERS = 4
cards = {}
cards[CardName.curse] = Card(CardName.curse,Card.defaultAction,1,0)
cards[CardName.estate] = Card(CardName.estate,Card.defaultAction,0,2)
cards[CardName.duchy] = Card(CardName.duchy,Card.defaultAction,0,5)
cards[CardName.province] = Card(CardName.province,Card.defaultAction,0,8)
cards[CardName.copper] = Card(CardName.copper,Card.copper,1,0)
cards[CardName.silver] = Card(CardName.silver,Card.silver,1,3)
cards[CardName.gold] = Card(CardName.gold,Card.gold,1,6)
cards[CardName.adventurer] = Card(CardName.adventurer,Card.adventurer,2,6)
cards[CardName.ambassador] = Card(CardName.ambassador,Card.ambassador,9,3)
cards[CardName.baron] = Card(CardName.baron,Card.baron,9,4)
cards[CardName.council_room] = Card(CardName.council_room,Card.council_room,2,5)
cards[CardName.cutpurse] = Card(CardName.cutpurse,Card.cutpurse,9,4)
cards[CardName.embargo] = Card(CardName.embargo,Card.embargo,9,2)
cards[CardName.feast] = Card(CardName.feast,Card.feast,2,4)
cards[CardName.gardens] = Card(CardName.gardens,Card.defaultAction,9,4)
cards[CardName.great_hall] = Card(CardName.great_hall,Card.great_hall,9,3)
cards[CardName.mine] = Card(CardName.mine,Card.mine,2,5)
cards[CardName.minion] = Card(CardName.minion,Card.defaultAction,9,9)
cards[CardName.outpost] = Card(CardName.outpost,Card.defaultAction,9,9)
cards[CardName.remodel] = Card(CardName.remodel,Card.defaultAction,2,4)
cards[CardName.salvager] = Card(CardName.salvager,Card.defaultAction,9,9)
github agroce / tstl / deprecated / obsolete / src / playdom.py View on Github external
#    embargo, /* choice1 = supply# */
#    feast, /* choice1 is supply # of card gained) */
#    gardens,
#    great_hall,
#    mine, /* choice1 is hand# of money to trash, choice2 is supply# of


MAX_PLAYERS = 4
cards = {}
cards[CardName.curse] = Card(CardName.curse,Card.defaultAction,1,0)
cards[CardName.estate] = Card(CardName.estate,Card.defaultAction,0,2)
cards[CardName.duchy] = Card(CardName.duchy,Card.defaultAction,0,5)
cards[CardName.province] = Card(CardName.province,Card.defaultAction,0,8)
cards[CardName.copper] = Card(CardName.copper,Card.copper,1,0)
cards[CardName.silver] = Card(CardName.silver,Card.silver,1,3)
cards[CardName.gold] = Card(CardName.gold,Card.gold,1,6)
cards[CardName.adventurer] = Card(CardName.adventurer,Card.adventurer,2,6)
cards[CardName.ambassador] = Card(CardName.ambassador,Card.ambassador,9,3)
cards[CardName.baron] = Card(CardName.baron,Card.baron,9,4)
cards[CardName.council_room] = Card(CardName.council_room,Card.council_room,2,5)
cards[CardName.cutpurse] = Card(CardName.cutpurse,Card.cutpurse,9,4)
cards[CardName.embargo] = Card(CardName.embargo,Card.embargo,9,2)
cards[CardName.feast] = Card(CardName.feast,Card.feast,2,4)
cards[CardName.gardens] = Card(CardName.gardens,Card.defaultAction,9,4)
cards[CardName.great_hall] = Card(CardName.great_hall,Card.great_hall,9,3)
cards[CardName.mine] = Card(CardName.mine,Card.mine,2,5)
cards[CardName.minion] = Card(CardName.minion,Card.defaultAction,9,9)
cards[CardName.outpost] = Card(CardName.outpost,Card.defaultAction,9,9)
cards[CardName.remodel] = Card(CardName.remodel,Card.defaultAction,2,4)
cards[CardName.salvager] = Card(CardName.salvager,Card.defaultAction,9,9)
cards[CardName.sea_hag] = Card(CardName.sea_hag,Card.defaultAction,9,9)
cards[CardName.smithy] = Card(CardName.smithy,Card.defaultAction,2,4)
github agroce / tstl / deprecated / obsolete / src / playdom.py View on Github external
MAX_PLAYERS = 4
cards = {}
cards[CardName.curse] = Card(CardName.curse,Card.defaultAction,1,0)
cards[CardName.estate] = Card(CardName.estate,Card.defaultAction,0,2)
cards[CardName.duchy] = Card(CardName.duchy,Card.defaultAction,0,5)
cards[CardName.province] = Card(CardName.province,Card.defaultAction,0,8)
cards[CardName.copper] = Card(CardName.copper,Card.copper,1,0)
cards[CardName.silver] = Card(CardName.silver,Card.silver,1,3)
cards[CardName.gold] = Card(CardName.gold,Card.gold,1,6)
cards[CardName.adventurer] = Card(CardName.adventurer,Card.adventurer,2,6)
cards[CardName.ambassador] = Card(CardName.ambassador,Card.ambassador,9,3)
cards[CardName.baron] = Card(CardName.baron,Card.baron,9,4)
cards[CardName.council_room] = Card(CardName.council_room,Card.council_room,2,5)
cards[CardName.cutpurse] = Card(CardName.cutpurse,Card.cutpurse,9,4)
cards[CardName.embargo] = Card(CardName.embargo,Card.embargo,9,2)
cards[CardName.feast] = Card(CardName.feast,Card.feast,2,4)
cards[CardName.gardens] = Card(CardName.gardens,Card.defaultAction,9,4)
cards[CardName.great_hall] = Card(CardName.great_hall,Card.great_hall,9,3)
cards[CardName.mine] = Card(CardName.mine,Card.mine,2,5)
cards[CardName.minion] = Card(CardName.minion,Card.defaultAction,9,9)
cards[CardName.outpost] = Card(CardName.outpost,Card.defaultAction,9,9)
cards[CardName.remodel] = Card(CardName.remodel,Card.defaultAction,2,4)
cards[CardName.salvager] = Card(CardName.salvager,Card.defaultAction,9,9)
cards[CardName.sea_hag] = Card(CardName.sea_hag,Card.defaultAction,9,9)
cards[CardName.smithy] = Card(CardName.smithy,Card.defaultAction,2,4)
cards[CardName.steward] = Card(CardName.steward,Card.defaultAction,9,9)
cards[CardName.treasure_map] = Card(CardName.treasure_map,Card.defaultAction,9,9)
cards[CardName.tribute] = Card(CardName.tribute,Card.defaultAction,9,9)
cards[CardName.village] = Card(CardName.village,Card.defaultAction,2,3)
github agroce / tstl / deprecated / obsolete / src / playdom.py View on Github external
cards = {}
cards[CardName.curse] = Card(CardName.curse,Card.defaultAction,1,0)
cards[CardName.estate] = Card(CardName.estate,Card.defaultAction,0,2)
cards[CardName.duchy] = Card(CardName.duchy,Card.defaultAction,0,5)
cards[CardName.province] = Card(CardName.province,Card.defaultAction,0,8)
cards[CardName.copper] = Card(CardName.copper,Card.copper,1,0)
cards[CardName.silver] = Card(CardName.silver,Card.silver,1,3)
cards[CardName.gold] = Card(CardName.gold,Card.gold,1,6)
cards[CardName.adventurer] = Card(CardName.adventurer,Card.adventurer,2,6)
cards[CardName.ambassador] = Card(CardName.ambassador,Card.ambassador,9,3)
cards[CardName.baron] = Card(CardName.baron,Card.baron,9,4)
cards[CardName.council_room] = Card(CardName.council_room,Card.council_room,2,5)
cards[CardName.cutpurse] = Card(CardName.cutpurse,Card.cutpurse,9,4)
cards[CardName.embargo] = Card(CardName.embargo,Card.embargo,9,2)
cards[CardName.feast] = Card(CardName.feast,Card.feast,2,4)
cards[CardName.gardens] = Card(CardName.gardens,Card.defaultAction,9,4)
cards[CardName.great_hall] = Card(CardName.great_hall,Card.great_hall,9,3)
cards[CardName.mine] = Card(CardName.mine,Card.mine,2,5)
cards[CardName.minion] = Card(CardName.minion,Card.defaultAction,9,9)
cards[CardName.outpost] = Card(CardName.outpost,Card.defaultAction,9,9)
cards[CardName.remodel] = Card(CardName.remodel,Card.defaultAction,2,4)
cards[CardName.salvager] = Card(CardName.salvager,Card.defaultAction,9,9)
cards[CardName.sea_hag] = Card(CardName.sea_hag,Card.defaultAction,9,9)
cards[CardName.smithy] = Card(CardName.smithy,Card.defaultAction,2,4)
cards[CardName.steward] = Card(CardName.steward,Card.defaultAction,9,9)
cards[CardName.treasure_map] = Card(CardName.treasure_map,Card.defaultAction,9,9)
cards[CardName.tribute] = Card(CardName.tribute,Card.defaultAction,9,9)
cards[CardName.village] = Card(CardName.village,Card.defaultAction,2,3)


class GameState:
github agroce / tstl / deprecated / obsolete / src / playdom.py View on Github external
cards[CardName.curse] = Card(CardName.curse,Card.defaultAction,1,0)
cards[CardName.estate] = Card(CardName.estate,Card.defaultAction,0,2)
cards[CardName.duchy] = Card(CardName.duchy,Card.defaultAction,0,5)
cards[CardName.province] = Card(CardName.province,Card.defaultAction,0,8)
cards[CardName.copper] = Card(CardName.copper,Card.copper,1,0)
cards[CardName.silver] = Card(CardName.silver,Card.silver,1,3)
cards[CardName.gold] = Card(CardName.gold,Card.gold,1,6)
cards[CardName.adventurer] = Card(CardName.adventurer,Card.adventurer,2,6)
cards[CardName.ambassador] = Card(CardName.ambassador,Card.ambassador,9,3)
cards[CardName.baron] = Card(CardName.baron,Card.baron,9,4)
cards[CardName.council_room] = Card(CardName.council_room,Card.council_room,2,5)
cards[CardName.cutpurse] = Card(CardName.cutpurse,Card.cutpurse,9,4)
cards[CardName.embargo] = Card(CardName.embargo,Card.embargo,9,2)
cards[CardName.feast] = Card(CardName.feast,Card.feast,2,4)
cards[CardName.gardens] = Card(CardName.gardens,Card.defaultAction,9,4)
cards[CardName.great_hall] = Card(CardName.great_hall,Card.great_hall,9,3)
cards[CardName.mine] = Card(CardName.mine,Card.mine,2,5)
cards[CardName.minion] = Card(CardName.minion,Card.defaultAction,9,9)
cards[CardName.outpost] = Card(CardName.outpost,Card.defaultAction,9,9)
cards[CardName.remodel] = Card(CardName.remodel,Card.defaultAction,2,4)
cards[CardName.salvager] = Card(CardName.salvager,Card.defaultAction,9,9)
cards[CardName.sea_hag] = Card(CardName.sea_hag,Card.defaultAction,9,9)
cards[CardName.smithy] = Card(CardName.smithy,Card.defaultAction,2,4)
cards[CardName.steward] = Card(CardName.steward,Card.defaultAction,9,9)
cards[CardName.treasure_map] = Card(CardName.treasure_map,Card.defaultAction,9,9)
cards[CardName.tribute] = Card(CardName.tribute,Card.defaultAction,9,9)
cards[CardName.village] = Card(CardName.village,Card.defaultAction,2,3)


class GameState:

	def __init__(self):
github agroce / tstl / deprecated / obsolete / src / playdom.py View on Github external
MAX_PLAYERS = 4
cards = {}
cards[CardName.curse] = Card(CardName.curse,Card.defaultAction,1,0)
cards[CardName.estate] = Card(CardName.estate,Card.defaultAction,0,2)
cards[CardName.duchy] = Card(CardName.duchy,Card.defaultAction,0,5)
cards[CardName.province] = Card(CardName.province,Card.defaultAction,0,8)
cards[CardName.copper] = Card(CardName.copper,Card.copper,1,0)
cards[CardName.silver] = Card(CardName.silver,Card.silver,1,3)
cards[CardName.gold] = Card(CardName.gold,Card.gold,1,6)
cards[CardName.adventurer] = Card(CardName.adventurer,Card.adventurer,2,6)
cards[CardName.ambassador] = Card(CardName.ambassador,Card.ambassador,9,3)
cards[CardName.baron] = Card(CardName.baron,Card.baron,9,4)
cards[CardName.council_room] = Card(CardName.council_room,Card.council_room,2,5)
cards[CardName.cutpurse] = Card(CardName.cutpurse,Card.cutpurse,9,4)
cards[CardName.embargo] = Card(CardName.embargo,Card.embargo,9,2)
cards[CardName.feast] = Card(CardName.feast,Card.feast,2,4)
cards[CardName.gardens] = Card(CardName.gardens,Card.defaultAction,9,4)
cards[CardName.great_hall] = Card(CardName.great_hall,Card.great_hall,9,3)
cards[CardName.mine] = Card(CardName.mine,Card.mine,2,5)
cards[CardName.minion] = Card(CardName.minion,Card.defaultAction,9,9)
cards[CardName.outpost] = Card(CardName.outpost,Card.defaultAction,9,9)
cards[CardName.remodel] = Card(CardName.remodel,Card.defaultAction,2,4)
cards[CardName.salvager] = Card(CardName.salvager,Card.defaultAction,9,9)
cards[CardName.sea_hag] = Card(CardName.sea_hag,Card.defaultAction,9,9)
cards[CardName.smithy] = Card(CardName.smithy,Card.defaultAction,2,4)
cards[CardName.steward] = Card(CardName.steward,Card.defaultAction,9,9)
cards[CardName.treasure_map] = Card(CardName.treasure_map,Card.defaultAction,9,9)
cards[CardName.tribute] = Card(CardName.tribute,Card.defaultAction,9,9)
cards[CardName.village] = Card(CardName.village,Card.defaultAction,2,3)


class GameState:
github agroce / tstl / deprecated / obsolete / src / playdom.py View on Github external
cards[CardName.province] = Card(CardName.province,Card.defaultAction,0,8)
cards[CardName.copper] = Card(CardName.copper,Card.copper,1,0)
cards[CardName.silver] = Card(CardName.silver,Card.silver,1,3)
cards[CardName.gold] = Card(CardName.gold,Card.gold,1,6)
cards[CardName.adventurer] = Card(CardName.adventurer,Card.adventurer,2,6)
cards[CardName.ambassador] = Card(CardName.ambassador,Card.ambassador,9,3)
cards[CardName.baron] = Card(CardName.baron,Card.baron,9,4)
cards[CardName.council_room] = Card(CardName.council_room,Card.council_room,2,5)
cards[CardName.cutpurse] = Card(CardName.cutpurse,Card.cutpurse,9,4)
cards[CardName.embargo] = Card(CardName.embargo,Card.embargo,9,2)
cards[CardName.feast] = Card(CardName.feast,Card.feast,2,4)
cards[CardName.gardens] = Card(CardName.gardens,Card.defaultAction,9,4)
cards[CardName.great_hall] = Card(CardName.great_hall,Card.great_hall,9,3)
cards[CardName.mine] = Card(CardName.mine,Card.mine,2,5)
cards[CardName.minion] = Card(CardName.minion,Card.defaultAction,9,9)
cards[CardName.outpost] = Card(CardName.outpost,Card.defaultAction,9,9)
cards[CardName.remodel] = Card(CardName.remodel,Card.defaultAction,2,4)
cards[CardName.salvager] = Card(CardName.salvager,Card.defaultAction,9,9)
cards[CardName.sea_hag] = Card(CardName.sea_hag,Card.defaultAction,9,9)
cards[CardName.smithy] = Card(CardName.smithy,Card.defaultAction,2,4)
cards[CardName.steward] = Card(CardName.steward,Card.defaultAction,9,9)
cards[CardName.treasure_map] = Card(CardName.treasure_map,Card.defaultAction,9,9)
cards[CardName.tribute] = Card(CardName.tribute,Card.defaultAction,9,9)
cards[CardName.village] = Card(CardName.village,Card.defaultAction,2,3)


class GameState:

	def __init__(self):
		self.numPlayers = 0
		self.playerTurn = 0
github agroce / tstl / deprecated / obsolete / src / playdom.py View on Github external
MAX_PLAYERS = 4
cards = {}
cards[CardName.curse] = Card(CardName.curse,Card.defaultAction,1,0)
cards[CardName.estate] = Card(CardName.estate,Card.defaultAction,0,2)
cards[CardName.duchy] = Card(CardName.duchy,Card.defaultAction,0,5)
cards[CardName.province] = Card(CardName.province,Card.defaultAction,0,8)
cards[CardName.copper] = Card(CardName.copper,Card.copper,1,0)
cards[CardName.silver] = Card(CardName.silver,Card.silver,1,3)
cards[CardName.gold] = Card(CardName.gold,Card.gold,1,6)
cards[CardName.adventurer] = Card(CardName.adventurer,Card.adventurer,2,6)
cards[CardName.ambassador] = Card(CardName.ambassador,Card.ambassador,9,3)
cards[CardName.baron] = Card(CardName.baron,Card.baron,9,4)
cards[CardName.council_room] = Card(CardName.council_room,Card.council_room,2,5)
cards[CardName.cutpurse] = Card(CardName.cutpurse,Card.cutpurse,9,4)
cards[CardName.embargo] = Card(CardName.embargo,Card.embargo,9,2)
cards[CardName.feast] = Card(CardName.feast,Card.feast,2,4)
cards[CardName.gardens] = Card(CardName.gardens,Card.defaultAction,9,4)
cards[CardName.great_hall] = Card(CardName.great_hall,Card.great_hall,9,3)
cards[CardName.mine] = Card(CardName.mine,Card.mine,2,5)
cards[CardName.minion] = Card(CardName.minion,Card.defaultAction,9,9)
cards[CardName.outpost] = Card(CardName.outpost,Card.defaultAction,9,9)
cards[CardName.remodel] = Card(CardName.remodel,Card.defaultAction,2,4)
cards[CardName.salvager] = Card(CardName.salvager,Card.defaultAction,9,9)
cards[CardName.sea_hag] = Card(CardName.sea_hag,Card.defaultAction,9,9)
cards[CardName.smithy] = Card(CardName.smithy,Card.defaultAction,2,4)
cards[CardName.steward] = Card(CardName.steward,Card.defaultAction,9,9)
cards[CardName.treasure_map] = Card(CardName.treasure_map,Card.defaultAction,9,9)
cards[CardName.tribute] = Card(CardName.tribute,Card.defaultAction,9,9)
cards[CardName.village] = Card(CardName.village,Card.defaultAction,2,3)
github agroce / tstl / deprecated / obsolete / src / playdom.py View on Github external
cards[CardName.silver] = Card(CardName.silver,Card.silver,1,3)
cards[CardName.gold] = Card(CardName.gold,Card.gold,1,6)
cards[CardName.adventurer] = Card(CardName.adventurer,Card.adventurer,2,6)
cards[CardName.ambassador] = Card(CardName.ambassador,Card.ambassador,9,3)
cards[CardName.baron] = Card(CardName.baron,Card.baron,9,4)
cards[CardName.council_room] = Card(CardName.council_room,Card.council_room,2,5)
cards[CardName.cutpurse] = Card(CardName.cutpurse,Card.cutpurse,9,4)
cards[CardName.embargo] = Card(CardName.embargo,Card.embargo,9,2)
cards[CardName.feast] = Card(CardName.feast,Card.feast,2,4)
cards[CardName.gardens] = Card(CardName.gardens,Card.defaultAction,9,4)
cards[CardName.great_hall] = Card(CardName.great_hall,Card.great_hall,9,3)
cards[CardName.mine] = Card(CardName.mine,Card.mine,2,5)
cards[CardName.minion] = Card(CardName.minion,Card.defaultAction,9,9)
cards[CardName.outpost] = Card(CardName.outpost,Card.defaultAction,9,9)
cards[CardName.remodel] = Card(CardName.remodel,Card.defaultAction,2,4)
cards[CardName.salvager] = Card(CardName.salvager,Card.defaultAction,9,9)
cards[CardName.sea_hag] = Card(CardName.sea_hag,Card.defaultAction,9,9)
cards[CardName.smithy] = Card(CardName.smithy,Card.defaultAction,2,4)
cards[CardName.steward] = Card(CardName.steward,Card.defaultAction,9,9)
cards[CardName.treasure_map] = Card(CardName.treasure_map,Card.defaultAction,9,9)
cards[CardName.tribute] = Card(CardName.tribute,Card.defaultAction,9,9)
cards[CardName.village] = Card(CardName.village,Card.defaultAction,2,3)


class GameState:

	def __init__(self):
		self.numPlayers = 0
		self.playerTurn = 0

	def initializeGame(self, p, k, s):
		# check number of players