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
Emanuel Lugo
poker
Commits
08cbdd65
Commit
08cbdd65
authored
Apr 25, 2022
by
Emanuel Lugo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clase pokerGame creada
parent
883878ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
8 deletions
+64
-8
Carta.java
+11
-8
pokerGame.java
+53
-0
No files found.
Carta.java
View file @
08cbdd65
public
class
Carta
{
public
String
valor
;
public
String
palo
;
public
Carta
()
{
public
Carta
(){
}
public
Carta
(
String
completo
)
{
this
.
valor
=
String
.
valueOf
(
completo
.
charAt
(
0
));
this
.
palo
=
String
.
valueOf
(
completo
.
charAt
(
1
));
}
public
Carta
(
String
completo
)
{
this
.
valor
=
String
.
valueOf
(
completo
.
charAt
(
0
));
this
.
palo
=
String
.
valueOf
(
completo
.
charAt
(
1
));
}
String
valorPalo
()
{
...
...
pokerGame.java
0 → 100644
View file @
08cbdd65
/** */
public
class
pokerGame
{
public
String
jugadas
(
Carta
manoAux
[]){
return
null
;
}
public
static
void
main
(
String
[]
args
)
{
pokerGame
poker
=
new
pokerGame
();
int
i
;
Carta
mano
[]
=
new
Carta
[
5
];
mano
[
0
]
=
new
Carta
(
"AS"
);
mano
[
1
]
=
new
Carta
(
"2S"
);
mano
[
2
]=
new
Carta
(
"3S"
);
mano
[
3
]=
new
Carta
(
"4S"
);
mano
[
4
]=
new
Carta
(
"5S"
);
for
(
i
=
0
;
i
<
5
;
i
++)
System
.
out
.
println
(
mano
[
i
].
valorPalo
());
poker
.
jugadas
(
mano
)
;
}
}
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