Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wu-e001
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
Hugo Villagra
wu-e001
Commits
c0e9be19
Commit
c0e9be19
authored
Oct 08, 2018
by
roshka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Se soluciono el problema de error cuando se inserta letra
parent
2b5e1bab
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
Juego.class
+0
-0
Juego.java
+6
-0
No files found.
Juego.class
View file @
c0e9be19
No preview for this file type
Juego.java
View file @
c0e9be19
...
...
@@ -32,6 +32,7 @@ public class Juego{
boolean
finJuego
=
false
;
//Este bucle sirve para realizar el juego hasta que haya un ganador o no haya mas casilla que cargar
while
(!
finJuego
||
this
.
contadorJugadas
<
9
){
try
{
colocacion
=
this
.
comprobarPosicionSintaxis
();
//Comprobamos si la sintaxis es correcta correctas
//Convierte los valores obtenidos desde teclado a valores int
fila
=
Integer
.
parseInt
(
""
+
colocacion
.
charAt
(
0
))
-
1
;
...
...
@@ -60,6 +61,9 @@ public class Juego{
}
else
{
System
.
out
.
println
(
"La casilla ya esta cargada. Agrega otro valor"
);
}
}
catch
(
Exception
e
){
System
.
out
.
println
(
"Se cargo letras al colocar la posicion"
);
}
}
return
ganador
;
}
...
...
@@ -83,6 +87,8 @@ public class Juego{
System
.
out
.
println
(
"Columna incorrecta, por favor cargue de nuevo"
);
}
else
{
correcto
=
true
;
Integer
.
parseInt
(
""
+
posicion
.
charAt
(
0
));
Integer
.
parseInt
(
""
+
posicion
.
charAt
(
2
));
}
}
return
posicion
;
...
...
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