public void ShowWhatToDo() { int dealerCard = 0; string advicetHand = ""; string adviceOption = ""; ///// print adv strategy advice ///// richTextBoxSuggestions.ResetText(); myHand.GetTheSumOfCardsInHand(out int sum1, out int sum2); dealerCard = dealerHand.GetDealerCard(); if ((dealerCard == 0) || (sum1 == 0) || (sum1 > 21)) { ShowHelpMenu(); return; } if (dealerCard >= 12) { dealerCard = 10; } if (myHand.GotPair() == 1) { advicetHand = "PAIR -> "; adviceOption = advStrategy.ReturnPairAdvice(sum1 / 2, dealerCard); } else if (myHand.GotSoft() == 1) { advicetHand = "SOFT -> "; adviceOption = advStrategy.ReturnSoftAdvice(sum2, dealerCard); } else if (myHand.GotNormal() == 1) { advicetHand = "NORM -> "; adviceOption = advStrategy.ReturnNormalAdvice(sum1, dealerCard); } else { advicetHand = "ERROR - fail to determine the type of hand"; } richTextBoxSuggestions.AppendText("True Count: "); richTextBoxSuggestions.SelectionFont = new Font(richTextBoxSuggestions.Font, FontStyle.Bold); richTextBoxSuggestions.AppendText(shoe.GetTrueCount().ToString("F")); richTextBoxSuggestions.SelectionFont = new Font(richTextBoxSuggestions.Font, FontStyle.Regular); richTextBoxSuggestions.AppendText(Environment.NewLine); richTextBoxSuggestions.AppendText(Environment.NewLine); richTextBoxSuggestions.AppendText("Advice from Advance Strategy Guide"); richTextBoxSuggestions.AppendText(Environment.NewLine); richTextBoxSuggestions.AppendText(advicetHand); richTextBoxSuggestions.SelectionFont = new Font(richTextBoxSuggestions.Font, FontStyle.Bold); richTextBoxSuggestions.AppendText(adviceOption); richTextBoxSuggestions.SelectionFont = new Font(richTextBoxSuggestions.Font, FontStyle.Regular); richTextBoxSuggestions.AppendText(Environment.NewLine); richTextBoxSuggestions.AppendText(Environment.NewLine); richTextBoxSuggestions.AppendText("Favorable cards: " + (shoe.GetFavCards(sum2)).ToString() + " Total cards left: " + shoe.GetNrCardsLeft().ToString()); richTextBoxSuggestions.AppendText(Environment.NewLine); richTextBoxSuggestions.AppendText("Procent: "); richTextBoxSuggestions.SelectionFont = new Font(richTextBoxSuggestions.Font, FontStyle.Bold); richTextBoxSuggestions.AppendText(Math.Round((shoe.GetFavCards(sum2) * 100.0 / shoe.GetNrCardsLeft()), 2).ToString()); richTextBoxSuggestions.SelectionFont = new Font(richTextBoxSuggestions.Font, FontStyle.Regular); richTextBoxSuggestions.AppendText(Environment.NewLine); richTextBoxSuggestions.AppendText(Environment.NewLine); richTextBoxSuggestions.AppendText("Cards on this table: "); richTextBoxSuggestions.AppendText(Environment.NewLine); ShowTable(); }