Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
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 Baez
poker
Commits
fe215e30
Commit
fe215e30
authored
Apr 27, 2022
by
Jose Baez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Se corrije metodo TRIO
parent
dfe88611
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
24 deletions
+10
-24
Juego.java
+10
-24
out/production/poker/Juego.class
+0
-0
No files found.
Juego.java
View file @
fe215e30
...
@@ -76,33 +76,19 @@ public class Juego {
...
@@ -76,33 +76,19 @@ public class Juego {
valores
.
add
(
extraer
(
c
.
valor
));
valores
.
add
(
extraer
(
c
.
valor
));
}
}
Collections
.
sort
(
valores
);
Collections
.
sort
(
valores
);
int
counter
=
0
;
int
[]
numerosArray
=
pasarAArray
(
valores
)
;
int
numero
=
0
;
int
con
=
0
;
int
cantidadNumero
=
0
;
for
(
int
i
=
0
;
i
<
numerosArray
.
length
-
1
;
i
++)
{
int
cantidadNumero2
=
0
;
if
(
numerosArray
[
i
]
==
numerosArray
[
i
+
1
])
{
for
(
int
i
=
1
;
i
<
14
;
i
++){
con
++;
for
(
int
j
=
0
;
j
<
valores
.
size
();
j
++)
{
if
(
con
==
3
&&
numerosArray
[
2
]
==
numerosArray
[
4
])
{
int
s
=
valores
.
get
(
j
)
;
return
true
;
if
(
s
==
i
){
}
else
if
(
con
==
3
&&
numerosArray
[
2
]
==
numerosArray
[
0
]
){
counter
++
;
return
true
;
}
}
}
}
if
(
counter
>
cantidadNumero
){
numero
=
i
;
cantidadNumero
=
counter
;
cantidadNumero2
=
counter
;
}
if
((
counter
-
1
)
>
cantidadNumero
){
cantidadNumero2
=
counter
;
}
counter
=
0
;
}
}
if
(
cantidadNumero
==
3
&&
(
cantidadNumero2
-
1
)==
2
){
return
false
;
return
true
;
}
else
{
return
false
;
}
}
}
//Cuatro cartas iguales (mismo valor).
//Cuatro cartas iguales (mismo valor).
...
...
out/production/poker/Juego.class
View file @
fe215e30
No preview for this file type
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