static void Main(string[] args) { // This is a note DominionGame game = new DominionGame(); //This is a comment game.start(); }
public GlobalCardsPiles(DominionGame gameBoard) { this.gameBoard = gameBoard; CardsPiles = new Dictionary <string, CardPile>(); trashPile = new List <Card>(); initBasicCardsPiles(); initRandomCardsPiles(); }
public PlayerCardsPiles(DominionGame gameBoard, Player cardsPilesOwner) { this.gameBoard = gameBoard; this.cardsPilesOwner = cardsPilesOwner; hand = new List <Card>(); deck = new Stack <Card>(); discardPile = new Stack <Card>(); inPlay = new List <Card>(); rnd = new Random(); init(); }
public Player(string name, DominionGame gameBoard) { this.gameBoard = gameBoard; this.Name = name; this.roundsPlayed = 0; this.actionsCounter = 0; this.buysCounter = 0; this.moneyCounter = 0; this.playerVps = 0; cardsPiles = new PlayerCardsPiles(gameBoard, this); }