public Game() { Deck = new List <Card>(); Players = new List <Player>(); Bidding = new Bidding(); Carpet = new Carpet(); CurPlayer = 0; CurStep = Message.Steps.GAME; Round = 0; MaxPlayer = 4; MaxRound = 8; CountPlay = 0; for (Card.Color j = Card.Color.SPADE; j <= Card.Color.DIAMOND; j++) { for (Card.Number i = Card.Number.SEVEN; i <= Card.Number.ACE; i++) { Card card = new Card(i, j, 0); Deck.Add(card); } } Shuffle(); Bidding.Reset(); Carpet.Clear(); }
public void SetBidding(Bidding bid) { bidding = bid; }