diff --git a/Carta.java b/Carta.java index 2e2ff7d..4c0e786 100644 --- a/Carta.java +++ b/Carta.java @@ -1,16 +1,19 @@ public class Carta { + + public String valor; public String palo; - public Carta() - { - + + + public Carta(){ + } - public Carta(String completo) - { - this.valor = String.valueOf(completo.charAt(0)); - this.palo = String.valueOf(completo.charAt(1)); - } + public Carta (String completo) + { + this.valor = String.valueOf(completo.charAt(0)); + this.palo = String.valueOf(completo.charAt(1)); + } String valorPalo() { diff --git a/pokerGame.java b/pokerGame.java new file mode 100644 index 0000000..e5b20f6 --- /dev/null +++ b/pokerGame.java @@ -0,0 +1,53 @@ +/** */ + + +public class pokerGame { + + public String jugadas(Carta manoAux[]){ + + + + + + + + + + + + return null; + } + + + + + + + + + public static void main(String[] args) { + pokerGame poker = new pokerGame(); + int i; + Carta mano[] = new Carta[5]; + mano [0] = new Carta("AS"); + mano [1] = new Carta("2S"); + mano [2]= new Carta("3S"); + mano [3]= new Carta("4S"); + mano [4]= new Carta("5S"); + + + for (i=0; i<5 ; i++) + System.out.println(mano[i].valorPalo()); + + poker.jugadas(mano) ; + + + + } + + + + + + +}