From fe215e305825e8c9e71a6abed3016f065d13e360 Mon Sep 17 00:00:00 2001 From: JoseBaezx Date: Wed, 27 Apr 2022 08:16:20 -0400 Subject: [PATCH] Se corrije metodo TRIO --- Juego.java | 34 ++++++++++------------------------ out/production/poker/Juego.class | Bin 6205 -> 0 bytes 2 files changed, 10 insertions(+), 24 deletions(-) diff --git a/Juego.java b/Juego.java index 10fd890..f5d2e16 100644 --- a/Juego.java +++ b/Juego.java @@ -76,33 +76,19 @@ public class Juego { valores.add(extraer(c.valor)); } Collections.sort(valores); - int counter=0; - int numero=0; - int cantidadNumero=0; - int cantidadNumero2=0; - for(int i=1; i<14; i++){ - for (int j=0; j cantidadNumero){ - numero=i; - cantidadNumero=counter; - cantidadNumero2=counter; - } - if((counter-1) > cantidadNumero){ - cantidadNumero2=counter; - } - counter=0; } - if (cantidadNumero==3 && (cantidadNumero2-1)==2){ - return true; - }else { - return false; - } - + return false; } //Cuatro cartas iguales (mismo valor). diff --git a/out/production/poker/Juego.class b/out/production/poker/Juego.class index 111c346..ba5f5ce 100644 Binary files a/out/production/poker/Juego.class and b/out/production/poker/Juego.class differ -- libgit2 0.26.0