Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kotlin-004-poker
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
Jose Llamas
kotlin-004-poker
Commits
3ca9065f
Commit
3ca9065f
authored
Apr 22, 2020
by
Jllamas02
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Poker02
parent
e412ec11
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
.idea/workspace.xml
+1
-1
src/Poker02/Poker02.kt
+2
-3
No files found.
.idea/workspace.xml
View file @
3ca9065f
...
...
@@ -22,7 +22,7 @@
</component>
<component
name=
"PropertiesComponent"
>
<property
name=
"RunOnceActivity.ShowReadmeOnStart"
value=
"true"
/>
<property
name=
"last_opened_file_path"
value=
"$
USER_HOME$/Escritorio/TP-Kotlin-miguel-poker03-b0c4569ab3d5b0c82f418687e909bfe4cb9e9b29
"
/>
<property
name=
"last_opened_file_path"
value=
"$
PROJECT_DIR$
"
/>
</component>
<component
name=
"RunManager"
>
<configuration
name=
"Poker02.Poker02Kt"
type=
"JetRunConfigurationType"
factoryName=
"Kotlin"
temporary=
"true"
nameIsGenerated=
"true"
>
...
...
src/Poker02/Poker02.kt
View file @
3ca9065f
...
...
@@ -355,8 +355,7 @@ fun mejormazo(jugada1 : List<mazojugado>, jugada2 : List<mazojugado>, tipo1 :Str
var
mazo2
=
0
loopjugado1
@
for
(
indice
in
valordelmazovv1
.
indices
)
{
if
(
valordelmazovv1
[
indice
]
==
1
)
{
if
(
ultimo
==
5
||
(
indice
==
0
)){
mazo1
=
indice
if
(
ultimo
==
5
||
(
indice
==
0
)){
mazo1
=
indice
break
@loopjugado1
}
ultimo
++
...
...
@@ -394,7 +393,7 @@ fun mejormazo(jugada1 : List<mazojugado>, jugada2 : List<mazojugado>, tipo1 :Str
}
return
ganador
}
fun
reconocerjugada
(
jugadapa
:
List
<
mazojugado
>):
String
{
fun
reconocerjugada
(
jugadapa
:
List
<
mazojugado
>):
String
{
var
palosutilizados
=
arrayOf
(
0
,
0
,
0
,
0
)
var
mazosutilizados
=
arrayOf
(
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
)
...
...
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