Commit 7883e116 by Yovan Martinez

Mejora en la interfaz de usuario

parent 9e4df293
......@@ -106,8 +106,8 @@ public class Poker {
Carta carta1 = new Carta("6S");
Carta carta2 = new Carta("6D");
Carta carta3 = new Carta("8H");
Carta carta4 = new Carta("3C");
Carta carta5 = new Carta("TD");
Carta carta4 = new Carta("8C");
Carta carta5 = new Carta("8D");
Poker partida = new Poker();
//Le paso los valores con el metodo del profe
String [] mano = new String[]{carta1.valorPalo(),carta2.valorPalo(),carta3.valorPalo(),carta4.valorPalo(),carta5.valorPalo(),};
......@@ -119,6 +119,11 @@ public class Poker {
}else{
System.out.println(partida.getSuit());
System.out.println(partida.getValue());
System.out.print("Sus cartas son: [");
for (int i = 0; i < mano.length; i++) {
System.out.print(mano[i] + ",");
}
System.out.print("]\n");
System.out.println(partida.controlValor(partida.getValue()) + " " + partida.controlPalos(partida.getSuit()));
}
}
......
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