Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            //jugador1 = new BE.Jugador();
            //jugador1.ID = 8;
            //jugador1.USUARIO = "test pepe";
            //jugador2 = new BE.Jugador();
            //jugador2.ID = 9;
            //jugador2.USUARIO = "test Negrito";
            //turno.JUGADORES.Add(jugador1);
            //turno.JUGADORES.Add(jugador2);
            //mazo.CARTAS = mazoAction.PruebaFuncionamiento().ToList();  //sin base de datos

            mazoAction  = new BLL.Mazo();
            mazo.CARTAS = mazoAction.LlenarMazo().ToList();

            mazoAction.Repartir(turno, mazo, jugadorAction);

            turno.INDICE = 0;

            descarte.CARTAS.RemoveRange(0, descarte.CARTAS.Count());

            button1.Enabled      = false;
            btnRobar.Enabled     = true;
            imgMazo.Enabled      = true;
            btnRobarDes.Enabled  = true;
            imgDescarte.Enabled  = true;
            btnDescartar.Enabled = false;
            btnCortar.Enabled    = false;
            enlazar();
        }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            jugador1 = new BE.Jugador();
            jugador2 = new BE.Jugador();
            mazo     = new BLL.Mazo();

            mazo.PruebaFuncionamiento();
        }