Esempio n. 1
0
 // Method to display possible prizes
 public static void DisplayPrizes()
 {
     Console.WriteLine("--------PRIZES--------");
     foreach (HAND hand in Enum.GetValues(typeof(HAND)))
     {
         Console.WriteLine("{0, -20}", DetermineWinner.HandCombo(hand) + " - " + DetermineWinner.Winning(hand));
     }
     Console.WriteLine("----------------------");
 }
Esempio n. 2
0
        // Method to handle DRAW choice
        private void HandleDraw()
        {
            EvaluateHand evaluator = new EvaluateHand(deckArray);
            HAND         hand      = evaluator.HandEvaluator();     // gets value of hand displayed

            currentPlayer.AddCredit(DetermineWinner.Winning(hand)); // Adds credit to player's balance
            View.DisplayWinning(hand, deckArray);
            ResetLocalDeck();
            View.DealCards(deckArray);
        }
Esempio n. 3
0
 // Method to display old hand and winning on the console
 public static void DisplayWinning(HAND hand, Card[] oldDeck)
 {
     Console.Clear();
     Console.WriteLine("Your hand was: ");
     for (int i = 0; i < oldDeck.Length; i++)
     {
         Console.Write("{0, -20}", oldDeck[i]);
     }
     Console.WriteLine();
     Console.WriteLine("Result: " + DetermineWinner.HandCombo(hand) + " and "
                       + DetermineWinner.Winning(hand) + " was added to your credit.");
 }