Ejemplo n.º 1
0
        /// <summary>
        ///Returns a the next round.
        /// </summary>
        /// <param name="deck">The deck with which the round will be played.</param>
        /// <returns>Round</returns>
        public Round NextRound(Deck deck)
        {
            deck.Shuffle(DateTime.Now.Millisecond);

            CurrentRound = new Round(this, new Deck(true, true));

            return(CurrentRound);
        }
Ejemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="players">Array of players in the game.</param>
 /// <param name="deck">Deck for this round.</param>
 /// <returns></returns>
 public Round(Game game, Deck deck)
 {
     this.Game       = game;
     this.Players    = game.Players;
     this.NextPlayer = Players[0];
     this.Deck       = deck;
     this.Moves      = new Move[Players.Length];
     for (int i = 0; i < Moves.Length; i++)
     {
         Moves[i] = new Move(Players[i], null);
     }
 }
Ejemplo n.º 3
0
 public Move NextMove()
 {
     return(NextMove(Deck.Deal()));
 }