Ejemplo n.º 1
0
    public static void Main()
    {
        Craps game = new Craps();

        game.Play();

        Console.ReadLine();
    } // end Main
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Person me = new Person("Carolynn");

            me.chips = 100;
            //MainMenu casino = new MainMenu();
            //casino.Welcome();
            //Slots slots = new Slots(me);
            //slots.Start();
            Craps craps = new Craps(me);

            craps.Start();
        }
Ejemplo n.º 3
0
    public static void Main(string[] args)
    {
        int repetir = 0;
            while (repetir != 1)
            {
            Craps craps = new Craps();
            craps.jugar();

            System.Console.WriteLine("Volver a jugar  != 0");
           // System.Console.ReadKey();
            repetir = System.Convert.ToInt16(System.Console.ReadLine());
            }
    }
Ejemplo n.º 4
0
        public Game ChooseGame(Person player)
        {
            Game   game;
            string choice = "";

            do
            {
                Console.WriteLine("What game would you like to play? BlackJack, Slots, Craps, Go Fish, or War?");
                choice = Console.ReadLine().ToLower();
                if (choice == "blackjack" || choice == "black jack")
                {
                    game = new BlackJackGame(player);
                }
                else if (choice == "go fish" || choice == "gofish")
                {
                    game = new GoFishGame(player);
                }
                else if (choice == "war")
                {
                    game = new War(player);
                }
                else if (choice == "craps")
                {
                    game = new Craps(player);
                }
                else if (choice == "slots")
                {
                    game = new Slots(player);
                }
                else
                {
                    game = null;
                }
            } while(choice != "blackjack" && choice != "black jack" && choice != "go fish" && choice != "gofish" && choice != "war" &&
                    choice != "slots" && choice != "craps");
            Console.WriteLine("Going to " + choice + "!");
            return(game);
        }
    static void Main(string[] args)
    {
        Craps NewGame = new Craps();

        Console.ReadLine();
    }