Пример #1
0
        static void Main(string[] args)
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("- - - B U S C A M I N A S - - -");
            Console.WriteLine("Dificultad: ");
            int dificultad = 0;

            switch (dificultad)
            {
            case 1:
                Console.WriteLine("Fácil");
                break;

            case 2:
                Console.WriteLine("Medio");
                break;

            case 3:
                Console.WriteLine("Difícil");
                break;

            case 4:
                Console.WriteLine("Personalizado");
                break;

            case 5:
                Console.WriteLine("Salir");
                break;

            default:
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Error: Ingresa un número del 1 al 5");
                Console.ForegroundColor = ConsoleColor.White;
                break;
            }

            ConsoleGame <Celda> game = new ConsoleGame <Celda>(6, 7, 10);

            //string a = "10";
            //Console.WriteLine(a.PadLeft(3));
            Console.ReadKey();
            Celda.Status celda = Celda.Status.HIDDEN;
        }
Пример #2
0
 public void Endgame()
 {
     this.estado = Celda.Status.SHOWN;
 }
Пример #3
0
 public void RightClick()
 {
     this.estado = Celda.Status.FLAG;
 }
Пример #4
0
 public Mina()
 {
     this.estado = Celda.Status.SHOWN; //Para el principio
 }
Пример #5
0
 public Mine()
 {
     this.status = Celda.Status.SHOWN;
 }