1. (Censorship Problem)
- Try doing the whole problem in lowercase. Code to fix up the case can be
added once you have the lowercase code working.
- You are welcome to use the functions length(), any(), and all().
- You are welcome to use for- or while-loops.
2. (Worm Problem)
- You should call makeClickableFigure just once at the beginning of your
goWorm() function. Once this is done, the "click" global variable
is automatically updated whenever someone clicks on the figure; you don't
have to do anything extra to make this happen.
- Each click corresponds to at most one direction change. Once the worm
begins moving in a particular direction, it continues in that direction, in
a straight line (either horizontal or vertical), until another click occurs.