A robot walks into a 5*5 grid to collect some points from some of the cells. The objective of the game is to
reach one of the end cells or to collect above 2,000 points. Of course, like every other game, you will lose if
your points fall under a certain range.
Starting at the start cell (x=0, y=0), the goal is to keep moving in the grid and collecting points until one of the
following conditions is satisfied: 1. The number of the steps/iterations exceeds 20
- Your total score falls under -1,000
- Your total score exceeds 2,000
- The robot reaches one of the end locations (x=4, y=4) OR (x=4, y=0).
Sample Solution