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.
Your objective: to use a single while loop to move to position (1,22)
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