mirror of
https://github.com/neogeek23/Dominion-Strategy-Simulator.git
synced 2026-02-04 11:08:18 +00:00
Add files via upload
This commit is contained in:
parent
4ebe98a0a1
commit
666f0fc091
2
game.py
2
game.py
@ -51,7 +51,7 @@ def get_card_info():
|
|||||||
# [name, cost, cardtype, v, c, a, r, b, d, effect, count] - value to pass to Card()
|
# [name, cost, cardtype, v, c, a, r, b, d, effect, count] - value to pass to Card()
|
||||||
return [["Copper", 0, Card.CardType.Treasure, 0, 1, 0, 0, 0, 0, None, 60], # 1
|
return [["Copper", 0, Card.CardType.Treasure, 0, 1, 0, 0, 0, 0, None, 60], # 1
|
||||||
["Silver", 3, Card.CardType.Treasure, 0, 2, 0, 0, 0, 0, None, 40], # 2
|
["Silver", 3, Card.CardType.Treasure, 0, 2, 0, 0, 0, 0, None, 40], # 2
|
||||||
["Gold", 6, Card.CardType.Treasure, 0, 3, 0, 0, 0, 0, None, 30], # 3
|
["Gold", 6, Card.CardT]ype.Treasure, 0, 3, 0, 0, 0, 0, None, 30], # 3
|
||||||
|
|
||||||
["Estate", 2, Card.CardType.Victory, 1, 0, 0, 0, 0, 0, None, 24], # 4
|
["Estate", 2, Card.CardType.Victory, 1, 0, 0, 0, 0, 0, None, 24], # 4
|
||||||
["Dutchy", 5, Card.CardType.Victory, 3, 0, 0, 0, 0, 0, None, 12], # 5
|
["Dutchy", 5, Card.CardType.Victory, 3, 0, 0, 0, 0, 0, None, 12], # 5
|
||||||
|
|||||||
@ -98,8 +98,10 @@ class Player:
|
|||||||
self.__print_deck()
|
self.__print_deck()
|
||||||
|
|
||||||
def __gain_turn_events(self):
|
def __gain_turn_events(self):
|
||||||
self.add_actions(1)
|
self.__actions.int = 1
|
||||||
self.add_buys(1)
|
self.__buys = 1
|
||||||
|
self.__purchase_power = 0
|
||||||
|
self.__reactions.int = 0
|
||||||
|
|
||||||
def play_card(self, acceptable_card_type, chances, counter):
|
def play_card(self, acceptable_card_type, chances, counter):
|
||||||
if chances > 0 and self.__hand.contains_one_of(acceptable_card_type):
|
if chances > 0 and self.__hand.contains_one_of(acceptable_card_type):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user