Esempio n. 1
0
        public void GenerateCartForUser(int place)
        {
            var user = Users[place];
            var cart = PlayCardSet.GenerateRandomCart();

            user.Carts.Add(cart);
        }
Esempio n. 2
0
 public BlackjackGame()
 {
     Users        = new Dictionary <int, BlackjackUser>();
     PlayCardSet  = new PlayCardSet();
     UsersInQueue = new Dictionary <int, BlackjackUser>();
     UserMoved    = new Dictionary <BlackjackUser, bool>();
     foreach (var i in Enumerable.Range(0, 6))
     {
         Users.Add(i, null);
     }
 }