:- consult('/home/student/plnxt/plnxt.pl'). start :- nxt_open, trigger_killall, trigger_create(_,check_line,[nxt_stop,nxt_rotate(350,120),start]), nxt_go(300). check_line :- nxt_light(Light,force), Light < 50. :- start.