Esempio n. 1
0
        public Spades()
        {
            team1        = new Team(new Player(), new Player());
            team2        = new Team(new Player(), new Player());
            scoreHandler = new ScoreHandler();
            players      = new Player[4];
            players[0]   = team1.getPlayer1();
            players[1]   = team2.getPlayer1();
            players[2]   = team1.getPlayer2();
            players[3]   = team2.getPlayer2();

            startingPlayer = Utils.Instance.rnd.Next(4);
            bidding        = new Bidding(startingPlayer, players);
            deal           = new Deal(startingPlayer, players);
        }
Esempio n. 2
0
 public void startNextDeal()
 {
     startingPlayer = (startingPlayer + 1) % 4;
     bidding        = new Bidding(startingPlayer, players);
     deal           = new Deal(startingPlayer, players);
 }