Question: 3. Please help a game designer named GGG to make a game where user will start from 0,0 position (you see R) and will try

3. Please help a game designer named GGG to make a game where user will start from 0,0 position (you see R) and will try to reach to the destination 10,10 position You see D). A robot will go up, down, left right by inputting U, D, L or R for 15 times. In the middle of the roads there are some bombs (we put -1 for bombs). There are also some walls (we put number 5 for walls). Robot has to go side by the walls. If the robot reaches the bombs game over. Otherwise, if all 15 steps are done before reaching destination, game over. If robot reaches destination user wins. [30]

R

5

5

-1

-1

5

-1

5

-1

5

5

-1

5

5

5

5

-1

5

-1

-1

5

5

-1

D

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!