CyberSlug Rules!

Beginner Programming CMPS060

Prof. Paulo Franca

Home

Syllabus

Login

Objects

Download

Staff only

Can we bring the robot back?

this is how you compute_distance:
if you see the wall
result is zero;
turn back;
else
step ahead;
howmany= 1+compute_distance;
step ahead;
result is howmany
 
program