Exemple #1
0
        static void Main(string[] args)
        {
            // This is a note
            DominionGame game = new DominionGame();

            //This is a comment
            game.start();
        }
Exemple #2
0
 public GlobalCardsPiles(DominionGame gameBoard)
 {
     this.gameBoard = gameBoard;
     CardsPiles     = new Dictionary <string, CardPile>();
     trashPile      = new List <Card>();
     initBasicCardsPiles();
     initRandomCardsPiles();
 }
Exemple #3
0
 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();
 }
Exemple #4
0
        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);
        }