Created
November 29, 2016 00:49
-
-
Save faloi/1e57be16b63aa29655758ee7db800e73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
procedure PonerLinea(){ | |
IrAlOrigen() | |
Mover(Norte) | |
Linea() | |
IrAlComienzo() | |
} | |
procedure Linea(){ | |
while( puedeMover(Este)){ | |
PonerN(2, Rojo) | |
Mover(Este) | |
} | |
PonerN(Rojo) | |
} | |
//falta Volver al lugar de donde salió | |
procedure ActualizarContadorBanderasYVolver(){ | |
Marcar() | |
ActualizarContadorBanderas() | |
IrAMarca() | |
SacarMarca() | |
} | |
procedure PonerOSacarBandera(){ | |
if(hayBandera()){ | |
SacarBandera() | |
} else { | |
PonerBandera() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment