Beispiel #1
0
        public void UpdateBoxCards()
        {
            richTextBoxCards.ResetText();
            richTextBoxCards.SelectionFont = new Font(richTextBoxCards.Font, FontStyle.Bold);
            richTextBoxCards.AppendText("Cards Drawn/Left");
            richTextBoxCards.AppendText(Environment.NewLine + shoe.GetCardsDrawnProcent().ToString() + "%" + "  -  " + shoe.GetNrCardsDrawn().ToString());
            richTextBoxCards.SelectionFont = new Font(richTextBoxCards.Font, FontStyle.Regular);

            for (int i = 2; i <= 9; i++)
            {
                richTextBoxCards.AppendText(Environment.NewLine + "Drawn [" + shoe.ConvertNrToSym(i) + "]   - " + shoe.GetSNrXDrawnCards(i) + " / " + shoe.GetSNrXDrawnCardsLeft(i));
            }
            richTextBoxCards.AppendText(Environment.NewLine + "Drawn [" + shoe.ConvertNrToSym(10) + "] - " + shoe.GetSNrXDrawnCards(10) + " / " + shoe.GetSNrXDrawnCardsLeft(10) + "      X  -X");
            richTextBoxCards.AppendText(Environment.NewLine + "Drawn [" + shoe.ConvertNrToSym(11) + "]   - " + shoe.GetSNrXDrawnCards(11) + " / " + shoe.GetSNrXDrawnCardsLeft(11) + "   mX dX");
            richTextBoxCards.AppendText(Environment.NewLine + "Drawn [" + shoe.ConvertNrToSym(12) + "]    - " + shoe.GetSNrXDrawnCards(12) + " / " + shoe.GetSNrXDrawnCardsLeft(12) + "            r");
            richTextBoxCards.AppendText(Environment.NewLine + "Drawn [" + shoe.ConvertNrToSym(13) + "]   - " + shoe.GetSNrXDrawnCards(13) + " / " + shoe.GetSNrXDrawnCardsLeft(13) + "           xt");
            richTextBoxCards.AppendText(Environment.NewLine + "Drawn [" + shoe.ConvertNrToSym(14) + "]   - " + shoe.GetSNrXDrawnCards(14) + " / " + shoe.GetSNrXDrawnCardsLeft(14) + "     xm xd");

            richTextBoxCards.SelectionFont = new Font(richTextBoxCards.Font, FontStyle.Bold);
            richTextBoxCards.AppendText(Environment.NewLine + Environment.NewLine + "Dealer Card: " + shoe.ConvertNrToSym(dealerHand.GetDealerCard()));
            myHand.GetTheSumOfCardsInHand(out int sum1, out int sum2);
            richTextBoxCards.AppendText(Environment.NewLine + Environment.NewLine + "My Cards: " + myHand.GetNrCardsInHand().ToString() + "  --  " + sum1.ToString() + "/" + sum2.ToString() + Environment.NewLine);
            richTextBoxCards.SelectionFont = new Font(richTextBoxCards.Font, FontStyle.Regular);
            for (int i = 1; i <= myHand.GetNrCardsInHand(); i++)
            {
                richTextBoxCards.AppendText(shoe.ConvertNrToSym(myHand.GetTheXCardInHand(i)) + " ");
            }
        }