PRESENTACION

jueves, 26 de febrero de 2009

ALGORITMO CANIBALES Y MONJES


INSTRUCCIONES

Los canibales no se alimentan de monjes, si los monjes son igual o mayores que los canibales.
Para desplazarse de la orilla inicial a la orilla final o al contrario haga clic en GO!. Para embarcar y desembarcar haga clic en el misionero o en el canibal segun el caso.

Empezar

1- Embarcar dos canibales en orilla inicial, luego GO!
2- Desembarque un cannibal en orilla final, luego GO!
3- Embarque otro cannibal en orilla inicial,luego GO!
4- Desembarque un cannibal en orilla final,luego GO!
5- Desembarque un cannibal en orilla inicial y embarque dos monjes,luego GO!
6- Desembarque un monje en orilla final y embarque un cannibal,luego GO!
7- Desembarque un cannibal en orilla inicial y embarque un moje,luego GO!
8- Desembarque dos monjes en orilla final y embarque un cannibal,luego GO!
9- Embarque un canibal en orilla inicial y luego GO!
10- Desembarque un canibal en orilla final y luego GO!
11- Embarque un canibal en orilla inicial,luego GO!
12- Desembarque los dos canibales.

Felicitaciones.

0 comentarios:

Publicar un comentario