Exemplo n.º 1
0
        private void sendCommand(int fst, int snd)
        {
            bool end = false;

            if (fst > 5)
            {
                Console.WriteLine("Indexes too big");
            }
            else
            {
                end = __st.popBaloon(fst + 1, snd + 1);//if this turn ends the game, try to update the scoreboard
            }
            if (end)
            {
                Console.WriteLine("Congratulations!!You popped all the baloons in" + __st.cnt + "moves!");
            }
            updateScoreboard();
            restart();
        }