Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TP-Kotlin-miguel
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Miguel Do Carmo
TP-Kotlin-miguel
Commits
9261e6a1
Commit
9261e6a1
authored
Apr 17, 2020
by
Miguel Do Carmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arregle bug en la pareja asqskskcts no detectaba ... porque los break no le dejaban llegar a el
parent
483af2ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
16 deletions
+17
-16
out/production/tp-kotlin-miguel/codigos/PokerKt.class
+0
-0
src/codigos/poker.kt
+17
-16
No files found.
out/production/tp-kotlin-miguel/codigos/PokerKt.class
View file @
9261e6a1
No preview for this file type
src/codigos/poker.kt
View file @
9261e6a1
...
...
@@ -113,22 +113,8 @@ var noEsColor =true
if
(
valoresJugados
[
position
]
==
4
)
{
result
=
"POKER"
break
}
else
if
(
valoresJugados
[
position
]
==
1
&&
position
<=
9
)
{
if
(
position
<
9
)
{
if
(
1
==
valoresJugados
[
position
]
&&
1
==
valoresJugados
[
position
+
1
]
&&
1
==
valoresJugados
[
position
+
2
]
&&
1
==
valoresJugados
[
position
+
3
]
&&
1
==
valoresJugados
[
position
+
4
])
{
result
=
"ESCALERA"
break
}
else
{
continue
}
}
else
if
(
position
==
9
)
{
if
(
1
==
valoresJugados
[
position
]
&&
1
==
valoresJugados
[
position
+
1
]
&&
1
==
valoresJugados
[
position
+
2
]
&&
1
==
valoresJugados
[
position
+
3
]
&&
1
==
valoresJugados
[
0
])
{
result
=
"ESCALERA FIGURAS"
break
}
else
break
}
else
break
}
// Controla para ESCALERA
else
{
}
else
{
println
(
"\n${valoresJugados[position]}"
)
if
(
valoresJugados
[
position
]
==
3
)
tieneTrio
=
true
if
(
valoresJugados
[
position
]
==
2
)
cantDobles
++
result
=
if
((
cantDobles
==
1
)
&&
tieneTrio
)
"FULL"
...
...
@@ -136,6 +122,21 @@ var noEsColor =true
else
if
(
cantDobles
==
1
)
"PAREJA"
else
if
(
cantDobles
==
2
)
"PAREJA DOBLE"
else
"CARTA ALTA"
if
(
valoresJugados
[
position
]
==
1
)
{
if
(
position
<
9
)
{
if
(
1
==
valoresJugados
[
position
]
&&
1
==
valoresJugados
[
position
+
1
]
&&
1
==
valoresJugados
[
position
+
2
]
&&
1
==
valoresJugados
[
position
+
3
]
&&
1
==
valoresJugados
[
position
+
4
])
{
result
=
"ESCALERA"
break
}
else
{
continue
}
}
else
if
(
position
==
9
)
{
if
(
1
==
valoresJugados
[
position
]
&&
1
==
valoresJugados
[
position
+
1
]
&&
1
==
valoresJugados
[
position
+
2
]
&&
1
==
valoresJugados
[
position
+
3
]
&&
1
==
valoresJugados
[
0
])
{
result
=
"ESCALERA FIGURAS"
break
}
else
continue
}
else
continue
}
// Controla para ESCALERA
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment