Commit 03c1770d by Jose Baez

Se realiza cambio de reglas de validadacion para escalera

parent cbe23ab0
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_16" project-jdk-name="17" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
\ No newline at end of file
......@@ -40,13 +40,10 @@ public class Dado {
}
}
con=0;
for (int i = 0; i < numerosArray.length-1; i++) {
if (numerosArray[i] != numerosArray[i + 1]) {
con++;
}
if(con == 4 && (numerosArray[3]+1) == numerosArray[4]) {
String numerosString="";
for (int i = 0; i < numerosArray.length; i++) {
numerosString += numerosArray[i];
if(numerosString.equals("12345") || numerosString.equals("23456") || numerosString.equals("13456")) {
return "ESCALERA";
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment