/// <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); }
/// <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); } }
public Move NextMove() { return(NextMove(Deck.Deal())); }