Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Information Technologies II Challenge.#5
Information Technologies II Challenge.#5
Information Technologies II Challenge.#5
Algoritmo Be_fast_be_slow
enemy = "hero.findNearestEnemy()"
Escribir "hero.moveRight"
Escribir "hero.hide"
SiNo
Fin Si
Fin Mientras
Escribir "hero.moveUp"
Escribir "hero.jumpUp"
Escribir "hero.moveUp"
FinAlgoritmo
Level: One step up
Algoritmo One_step_up
enemy = "hero.findNearestEnemy()"
Escribir "hero.moveUp"
Escribir "hero.hide"
SiNo
Fin Si
Fin Mientras
Escribir "hero.moveRight"
Escribir "hero.jumpRight"
Escribir "hero.jumpDown"
Escribir "hero.jumpDown"
Escribir "hero.moveDown"
FinAlgoritmo
Level: Charge the time
Algoritmo Charge_the_time
enemy = "hero.findNearestEnemy()"
Escribir "hero.moveUp"
Escribir "hero.hide"
SiNo
Fin Si
Fin Mientras
Escribir "hero.moveUp"
Escribir "hero.jumpLeft"
FinAlgoritmo
Level: Lost in time
Algoritmo Lost_in_time
Escribir "hero.moveRight"
Escribir "hero.moveUp"
Escribir "hero.moveRight"
Escribir "hero.moveUp"
Escribir "hero.moveRight"
Escribir "hero.moveUp"
Escribir "hero.moveRight"
Escribir "hero.moveUp"
FinAlgoritmo
Level: Time call
Algoritmo Time_call
Escribir "hero.canmoveRight"
Escribir "hero.moveRight"
SiNo
Escribir "castTimeReset"
Fin Si
Fin Mientras
Escribir "hero.moveLeft"
Escribir "hero.moveDown"
Escribir "hero.moveLeft"
Escribir "hero.moveUp"
Escribir "hero.moveLeft"
Escribir "hero.moveDown"
Escribir "hero.moveLeft"
Escribir "hero.moveUp"
Escribir "hero.moveLeft"
FinAlgoritmo
}
Algoritmo Time_exchange
Escribir "hero.canmoveRight"
SiNo
Escribir "castTimeReset"
Fin Si
Fin Mientras
Escribir "hero.canmoveRight"
SiNo
Escribir "castTimeReset"
Fin Si
Fin Mientras
FinAlgoritmo
Level: Tempus fugit
Algoritmo Tempus_fugit
Escribir "hero.canmoveRight"
Escribir "hero.moveRight"
Escribir "hero.moveUp"
SiNo
Escribir "castTimeReset"
Fin Si
Fin Mientras
Escribir "hero.jumpRight"
Escribir "hero.moveDown"
Escribir "hero.moveLeft"
Escribir "hero.moveDown"
Escribir "hero.moveLeft"
Escribir "hero.moveDown"
FinAlgoritmo
Level: Tempus ímpetus
Algoritmo Tempus_impetus
Escribir "hero.moveDown"
Escribir "hero.moveLeft"
Escribir "hero.moveDown"
Escribir "hero.canmoveRight"
Escribir "hero.moveRight"
SiNo
Escribir "castTimeReset"
Fin Si
Fin Mientras
Escribir "hero.canmoveUp"
Escribir "hero.moveUp"
Escribir "castTimeReset"
Fin Si
Fin Mientras
Escribir "hero.moveRight"
Escribir "hero.moveRight"
FinAlgoritmo