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
Yovan Martinez
poker
Commits
9eafea77
Commit
9eafea77
authored
Apr 26, 2022
by
Yovan Martinez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mejoras interfaz usuario
parent
1698eabc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Poker.java
+6
-6
No files found.
Poker.java
View file @
9eafea77
...
@@ -103,11 +103,11 @@ public class Poker {
...
@@ -103,11 +103,11 @@ public class Poker {
}
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
Carta
carta1
=
new
Carta
(
"
4
S"
);
Carta
carta1
=
new
Carta
(
"
8
S"
);
Carta
carta2
=
new
Carta
(
"
T
D"
);
Carta
carta2
=
new
Carta
(
"
7
D"
);
Carta
carta3
=
new
Carta
(
"
5
H"
);
Carta
carta3
=
new
Carta
(
"
6
H"
);
Carta
carta4
=
new
Carta
(
"
8
C"
);
Carta
carta4
=
new
Carta
(
"
T
C"
);
Carta
carta5
=
new
Carta
(
"
3
D"
);
Carta
carta5
=
new
Carta
(
"
9
D"
);
Poker
partida
=
new
Poker
();
Poker
partida
=
new
Poker
();
int
control
=
0
;
//Variable para controlar el ingreso de cartas repetidas
int
control
=
0
;
//Variable para controlar el ingreso de cartas repetidas
//Le paso los valores con el metodo del profe
//Le paso los valores con el metodo del profe
...
@@ -136,7 +136,7 @@ public class Poker {
...
@@ -136,7 +136,7 @@ public class Poker {
System
.
out
.
print
(
mano
[
i
]
+
","
);
System
.
out
.
print
(
mano
[
i
]
+
","
);
}
}
System
.
out
.
print
(
"]\n"
);
System
.
out
.
print
(
"]\n"
);
System
.
out
.
println
(
partida
.
controlValor
(
partida
.
getValue
())
+
" "
+
partida
.
controlPalos
(
partida
.
getSuit
()));
System
.
out
.
println
(
"Jugada: "
+
partida
.
controlValor
(
partida
.
getValue
())
+
" "
+
partida
.
controlPalos
(
partida
.
getSuit
()));
}
}
}
else
{
}
else
{
System
.
out
.
println
(
"Jugada invalidas: Se encontraron cartas iguales, por favor intente de nuevo"
);
System
.
out
.
println
(
"Jugada invalidas: Se encontraron cartas iguales, por favor intente de nuevo"
);
...
...
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