Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
java-e005-poker-02
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
Pedro Rolon
java-e005-poker-02
Commits
9b2bd061
Commit
9b2bd061
authored
Nov 12, 2018
by
Pedro Rolon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Se corrigió un error en la escalera
parent
5bc8dbd0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
MyClass.java
+3
-3
java-e005.pdf
+0
-0
No files found.
MyClass.java
View file @
9b2bd061
...
...
@@ -286,7 +286,7 @@ public class MyClass {
//Si el sumador llegó a 5 entra al ciclo que comprueba
//o si llegó a 4 y existe una A
//si alguno de los palos vino 5 veces
if
(
sumador
==
5
||
(
sumador
==
4
&&
valores
[
0
]==
1
)){
if
(
sumador
==
5
||
(
sumador
==
4
&&
valores
[
0
]==
1
&&
valores
[
8
]==
1
)){
for
(
int
i
=
0
;
i
<
4
;
i
++)
{
if
(
palos
[
i
]==
5
){
return
true
;
...
...
@@ -372,7 +372,7 @@ public class MyClass {
//Si el sumador llegó a 5 entra al ciclo que comprueba
//o si llegó a 4 y existe una A
if
(
sumador
==
5
||
(
sumador
==
4
&&
valores
[
0
]==
1
)){
if
(
sumador
==
5
||
(
sumador
==
4
&&
valores
[
0
]==
1
&&
valores
[
8
]==
1
)){
return
true
;
}
...
...
@@ -504,8 +504,8 @@ public class MyClass {
m2
[
3
]
=
new
Carta
(
"3C"
);
m2
[
4
]
=
new
Carta
(
"3S"
);
jugadas
.
add
(
m1
);
jugadas
.
add
(
m2
);
jugadas
.
add
(
m1
);
String
ganadores
=
mc
.
ganadores
(
jugadas
);
...
...
java-e005.pdf
0 → 100644
View file @
9b2bd061
File added
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