if else food-ahead
[ move ]
[ turn-left
ifelse food-ahead
[ ifelse food-ahead
[ move move
ifelse food-ahead
[ move movemove ]
[ move ]
]
[ turn-left ]
]
[ ifelse food-ahead
[ move ]
[ turn-right ]
turn-right
ifelse food-ahead
[ move movemove ]
[ turn-left ]
move
]
]

Listing 1: Listing of the best solution generated by the hybrid algorithm that is capable of solving the Santa Fe Trail in 303 steps.