예제 #1
0
        public void DefaultGamers()
        {
            try
            {
                Player p1 = new Player();
                p1.Nombre = "Jugador 1";
                p1.Foto = iconList[0];
                p1.ColorPieza = colorsList[0];
                playerList.Add(p1);
                if (pcOption)//vs maquina
                {

                    
                }
                else//vs jugador
                {
                    Player p2 = new Player();
                    p2.Nombre = "Jugador 2";
                    p2.Foto = iconList[1];
                    p2.ColorPieza = colorsList[1];
                    playerList.Add(p2);
                }
            }
            catch (Exception ex)
            {
                Debugger.WriteException(ex, this);
            }
        }
예제 #2
0
 public Player createPC()
 {
     try
     {
         Player pc = new Player();
         pc.Nombre = "Maquina";
         pc.Foto = iconList[11];
         pc.ColorPieza = colorsList[5];                
         if (pcOption) { playerList.Add(pc); }
         return pc;
     }
     catch (Exception ex) 
     {
         Debugger.WriteException(ex, this);
         return null;
     }
 }