Let’s write a program that solves the map below (which you should create yourself) using only 1 while loop and you will need to understand the difference between and if test and a while loop.
Assignment 1) Start your Jeroo in position (1,0) and facing East.
![jeroo-maps-loops-24](https://blog.penjee.com/wp-content/uploads/2015/02/jeroo-maps-loops-24.png)
Your objective: to use a single while loop to move to position (1,22)
![jeroo-maps-loops-25](https://blog.penjee.com/wp-content/uploads/2015/02/jeroo-maps-loops-25.png)
Download the island file here
What is an “If Test”?
If you just want to do a single test, use an ‘if’ test, instead of a while loop
Download the island file here