MainWilliam.java 970 Bytes
Newer Older
willgonzz committed
1 2
public class MainWilliam{
   public static void main(String[] args) {
3
      PokerWilliam p=new Poker();
willgonzz committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
      String c[]={"2S","3S","4S","5S","6S"};
      p.setCartas(c);
      p.recorrer();
      String d[]={"2S","2C","2D","2H","6S"};
      p.setCartas(d);
      p.recorrer();
      String full[]={"2S","3S","2C","3D","3H"};
      p.setCartas(full);
      p.recorrer();
      String color[]={"2S","3S","4S","5S","8S"};
      p.setCartas(color);
      p.recorrer(); 
      String escalera[]={"3H","4D","5C","6S","7S"};
      p.setCartas(escalera);
      p.recorrer();
      String trio[]={"3S","2C","3D","3H","4S"};
      p.setCartas(trio);
      p.recorrer();
      String doblePar[]={"3D","3H","4S","4D","7H"};
      p.setCartas(doblePar);
      p.recorrer();
      String doble[]={"3D","3H","4S","2D","5S"};
      p.setCartas(doble);
      p.recorrer();
      String cartaAlta[]={"4S","9D","2S","3H","5C"};
      p.setCartas(cartaAlta);
      p.recorrer();
    }   
}