class program { define orientate_norte() { iterate(3) { if( notFacingNorth ) { turnleft(); } } } define orientate_sur() { iterate(3) { if( notFacingSouth ) { turnleft(); } } } define orientate_este() { iterate(3) { if( notFacingEast ) { turnleft(); } } } define orientate_oeste() { iterate(3) { if( notFacingWest ) { turnleft(); } } } program() { orientate_oeste(); (* Podemos usar las otras funciones para orientarnos hacia donde necesitemos *) turnoff(); } }