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
7883e116
Commit
7883e116
authored
2 years ago
by
Yovan Martinez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mejora en la interfaz de usuario
parent
9e4df293
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
Poker.java
+7
-2
No files found.
Poker.java
View file @
7883e116
...
...
@@ -106,8 +106,8 @@ public class Poker {
Carta
carta1
=
new
Carta
(
"6S"
);
Carta
carta2
=
new
Carta
(
"6D"
);
Carta
carta3
=
new
Carta
(
"8H"
);
Carta
carta4
=
new
Carta
(
"
3
C"
);
Carta
carta5
=
new
Carta
(
"
T
D"
);
Carta
carta4
=
new
Carta
(
"
8
C"
);
Carta
carta5
=
new
Carta
(
"
8
D"
);
Poker
partida
=
new
Poker
();
//Le paso los valores con el metodo del profe
String
[]
mano
=
new
String
[]{
carta1
.
valorPalo
(),
carta2
.
valorPalo
(),
carta3
.
valorPalo
(),
carta4
.
valorPalo
(),
carta5
.
valorPalo
(),};
...
...
@@ -119,6 +119,11 @@ public class Poker {
}
else
{
System
.
out
.
println
(
partida
.
getSuit
());
System
.
out
.
println
(
partida
.
getValue
());
System
.
out
.
print
(
"Sus cartas son: ["
);
for
(
int
i
=
0
;
i
<
mano
.
length
;
i
++)
{
System
.
out
.
print
(
mano
[
i
]
+
","
);
}
System
.
out
.
print
(
"]\n"
);
System
.
out
.
println
(
partida
.
controlValor
(
partida
.
getValue
())
+
" "
+
partida
.
controlPalos
(
partida
.
getSuit
()));
}
}
...
...
This diff is collapsed.
Click to expand it.
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