Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Casilla final - parte 2 #57

Merged
merged 3 commits into from
Oct 25, 2023
Merged

Casilla final - parte 2 #57

merged 3 commits into from
Oct 25, 2023

Conversation

dlopezalvas
Copy link
Contributor

@dlopezalvas dlopezalvas commented Oct 24, 2023

@@ -139,7 +139,9 @@ abstract class EscenaDesdeMapa extends EscenaActividad {
let nroColumna: number = casilla.nroColumna;
let ids: string[] = mapa[nroFila][nroColumna].split("&");
ids.forEach(id => {
if (id != '' && id != ' ' && id != '-' && id != '_') { // si no es casilla libre
if(id === '+'){
this.guardarPosicionFinal([nroColumna, nroFila])
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Queda la última posición que llene como la final si es que en el mapa se cargan más de una.

@dlopezalvas dlopezalvas marked this pull request as ready for review October 24, 2023 12:26
@dlopezalvas dlopezalvas merged commit a58f536 into master Oct 25, 2023
3 checks passed
@dlopezalvas dlopezalvas deleted the gramatica-end branch October 25, 2023 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lógica llegada a casillero final
2 participants