From 08cbdd65e8fbc134bfa58fa5956f0bdb4b1c01f3 Mon Sep 17 00:00:00 2001 From: Emanuel Lugo Date: Mon, 25 Apr 2022 23:51:27 -0400 Subject: [PATCH] clase pokerGame creada --- Carta.java | 19 +++++++++++-------- pokerGame.java | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+), 8 deletions(-) create mode 100644 pokerGame.java 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) ; + + + + } + + + + + + +} -- libgit2 0.26.0