Exemplo n.º 1
0
 public Game(Player playerL, Player playerT, Player playerR, Player user)
 {
     this.PlayerLeft = playerL;
     this.PlayerTop = playerT;
     this.PlayerRight = playerR;
     this.User = user;
     User.IsDealer = true;
     this.Round = new List<Player> () { PlayerLeft, PlayerTop, PlayerRight, User };
 }
Exemplo n.º 2
0
 protected override void OnCreate(Bundle bundle)
 {
     base.OnCreate (bundle);
     SetContentView (Resource.Layout.spades_layout);
     playerLeft = new Player (0);
     playerRight = new Player (2);
     playerTop = new Player (1);
     user = new Player (3);
     playerLeft.Partner = playerRight;
     playerRight.Partner = playerLeft;
     playerTop.Partner = user;
     user.Partner = playerTop;
     dealerList = new Dictionary<Player, bool> ();
     dealerList.Add (playerLeft, playerLeft.IsDealer);
     dealerList.Add (playerTop, playerTop.IsDealer);
     dealerList.Add (playerRight, playerRight.IsDealer);
     dealerList.Add (user, true);
 }
Exemplo n.º 3
0
 Player NextPlayer(Player current)
 {
 }