From 505741f7ee3323ae1aba8b37e33a9123b35ea1c7 Mon Sep 17 00:00:00 2001 From: Pedro Rolon Date: Thu, 29 Nov 2018 12:21:28 -0300 Subject: [PATCH] Se corrigiĆ³ la generaciĆ³n aleatoria. Ya no genera cartas iguales --- jweb-e002/build/classes/clases/Poker.class | Bin 10550 -> 0 bytes jweb-e002/build/classes/servlets/ManoDoc.class | Bin 5627 -> 0 bytes jweb-e002/src/clases/Poker.java | 45 +++++++++++++++++++++++++++++++-------------- jweb-e002/src/servlets/ManoDoc.java | 8 ++++---- 4 files changed, 35 insertions(+), 18 deletions(-) diff --git a/jweb-e002/build/classes/clases/Poker.class b/jweb-e002/build/classes/clases/Poker.class index 4433cc2..45788c5 100644 Binary files a/jweb-e002/build/classes/clases/Poker.class and b/jweb-e002/build/classes/clases/Poker.class differ diff --git a/jweb-e002/build/classes/servlets/ManoDoc.class b/jweb-e002/build/classes/servlets/ManoDoc.class index bb2a574..f8ebaaa 100644 Binary files a/jweb-e002/build/classes/servlets/ManoDoc.class and b/jweb-e002/build/classes/servlets/ManoDoc.class differ diff --git a/jweb-e002/src/clases/Poker.java b/jweb-e002/src/clases/Poker.java index 68bee19..1acf2d8 100644 --- a/jweb-e002/src/clases/Poker.java +++ b/jweb-e002/src/clases/Poker.java @@ -669,42 +669,59 @@ public class Poker { Random random = new Random(); String nuevaCarta = ""; - int valor; - int palo; + int valor[] = new int[n]; + int palo[] = new int[n]; + + + for(int i=0; i