From ba41aa43e5b275053a98638749af793668cbcf54 Mon Sep 17 00:00:00 2001 From: Yannine Alvarez Date: Sun, 19 Apr 2020 18:13:52 -0400 Subject: [PATCH] corrección de valor de retorno, agregar return poker. --- Poker/.idea/workspace.xml | 45 ++++++++++++++++++++++++--------------------- Poker/src/Poker.kt | 7 ++++++- 2 files changed, 30 insertions(+), 22 deletions(-) diff --git a/Poker/.idea/workspace.xml b/Poker/.idea/workspace.xml index 3acd2cc..142971b 100644 --- a/Poker/.idea/workspace.xml +++ b/Poker/.idea/workspace.xml @@ -1,13 +1,8 @@ - + - - - - - - - + - - + + - - + + - - + + - - + + - + @@ -140,10 +143,10 @@ - + - + @@ -168,7 +171,7 @@ file://$PROJECT_DIR$/src/Poker.kt - 65 + 70 diff --git a/Poker/src/Poker.kt b/Poker/src/Poker.kt index a54ffed..1e3f030 100644 --- a/Poker/src/Poker.kt +++ b/Poker/src/Poker.kt @@ -44,7 +44,12 @@ fun jugada(mano: String): String { return "DOS PARES" } - 4 -> return "UN PAR" + 4 -> { + return "UN PAR" + } + 5 -> { + return "POKER" + } else -> { val color = esColor(cartas) val escalera = esEscalera(cartas) //corregir -- libgit2 0.26.0