Let’s define each of our IF statements for our rules.
We will also program Scratch to broadcast information and reset his position when he fails or wins.
We will now select the colors to use for our IF statements.
These colors can be later customized or new rules can be added using the same blocks of code.
The first color needs to be the color of the lines that make up the maze (black).
The second color needs to be the color used for the end of the maze (bright green).