Coding Board Solutions

Use the window below to find the shortest path on our coding grid.

You will be prompted to enter the positions that you would like your trees to be in. Use the grid locations from the chart below and enter all of the squares that contain a tree separated by a comma then press enter when you're done. If there are no trees on the grid, just press enter.

For example:

Trees: A4, C4, E1

or

Trees: C1, E5, E3, A4

You will then see an output of the grid with a T in each tree square.

Next you will be prompted for the starting position. Type the square that you start at and press enter. Do the same thing for the ending position.

You will then see an output of the grid with the T's, and a S and E for the start and the end. You will also see arrows representing the shortest path.

Press "Run" to try it out below: