CyberSlug Rules!

Beginner Programming CMPS060

Prof. Paulo Franca

Home

Syllabus

Login

Objects

Download

Staff only

Can we explore the maze?

explore by your command:

ask for a direction; if free, mark and step;

can you undo it?

 

choose a random direction:

#include <math.h>

direction=rand()%4;