Commit 08cbdd65 by Emanuel Lugo

clase pokerGame creada

parent 883878ed
public class Carta {
public String valor;
public String palo;
public Carta()
{
public Carta(){
}
public Carta(String completo)
public Carta (String completo)
{
this.valor = String.valueOf(completo.charAt(0));
this.palo = String.valueOf(completo.charAt(1));
......
/** */
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) ;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment