Example #1
0
    private void SetAllPlayerCards()
    {
        CardDealer cardDealer      = new CardDealer();
        List <int> playerscardlist = cardDealer.GetTheAllPlayersCard();

        AllPlayersCard.Add(new List <int>());
        for (int i = 0; i < playerscardlist.Count; i++)
        {
            DebugManager.Log(i + " " + playerscardlist[i]);
            //int value = playerscardlist[i] % 13 != 0 ? playerscardlist[i] % 13 : 1;
            int value = playerscardlist[i];
            AllPlayersCard[AllPlayersCard.Count - 1].Add(value);

            if ((i + 1) % 13 == 0)
            {
                AllPlayersCard.Add(new List <int>());
            }
        }
    }