/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package businessLogic;

import static businessLogic.DealingAssistant.*;
import static businessLogic.HandAnalyser.bestHand;
import data.*;
import java.util.Collections;
import java.util.List;
import static ui.UI.*;

/**
 *
 * @author OnePoker UN &
 */
public class RoundHandler {

    public static void reiceveBets(Round round) throws Exception {
        //stub
        int userBet = askInt("Bet: ");
        List<Player> players = round.getPlayers();
        System.out.println("Betting time");
        for (int i = 0; i < players.size(); i++) {
            round.addToPot(25);
        }
    }
    
   

    public static void roundMenu() {
        int menu = 0;
        while (menu == 0) {
            try {
                printRoundMenu();
                menu = askRoundMenu();
                switch (menu) {
                    case 1: {
                        break;
                    }
                    case 2: {
                        printHelp();
                        break;
                    }
                    case 3: {
                    }
                    default: {
                        throw new IllegalArgumentException("Not a valid command", null);
                    }

                }
            } catch (Exception ex) {
                System.out.println(ex.getMessage());
                ex.printStackTrace();
                printError();
            }
        }
    }

    public static void playRound(Round round) {
        //tratando de imprimir cartas unicode

        DealingDeck dealingDeck = round.getDealingDeck();
        Hand tableHand = round.getTableHand();
        burnCard(dealingDeck);

        dealToPlayers(round);
        System.out.println("Your cards are: ");
        System.out.println("" + round.getPlayers().get(0).getHand());
        for (int i = 0; i < 3; i++) {

            roundMenu();
            switch (i) {
                case 0: {
                    System.out.println("The flop: ");
                    deal(dealingDeck, tableHand, 3);
                    break;
                }
                case 1: {
                    System.out.println("The turn:  ");
                    deal(dealingDeck, tableHand, 1);
                    break;
                }
                case 2: {
                    System.out.println("The river:  ");
                    deal(dealingDeck, tableHand, 1);
                    break;
                }
            }
            System.out.println(tableHand);
        }
        compareHands(round);
        printPlayers(round);

    }

    public static void compareHands(Round round) {
        for (Player plyr : round.getPlayers()) {
            List<Hand> possibleHands = bestHand(plyr.getHand(), round.getTableHand());
            plyr.setHand(possibleHands.get(0));
            plyr.setKickers(possibleHands.get(1));
        }

        System.out.println("\n\nCOMPARING PLAYER HANDS");
        Collections.sort(round.getPlayers(), Collections.reverseOrder());
    }

}

@@ -805,19 +805,8 @@
   %7D%0D
-%0A    %0D%0A   %0D
 %0A%0D%0A 
@@ -1017,24 +1017,148 @@
 h (menu) %7B%0D%0A
+                    case 0: %7B%0D%0A                        //do nothing%0D%0A                        break;%0D%0A                    %7D%0D%0A
             
@@ -1825,57 +1825,8 @@
  %7B%0D%0A
-        //tratando de imprimir cartas unicode%0D%0A%0D%0A
     

Add null menu option(case 0)