Question: I want code in C++ Start Point End Take a 2D array (of size mentioned in the grid)and place a at the (0,0) index. The

I want code in C++
Start Point End Take a 2D array (of size mentioned in the grid)and place a at the (0,0) index. The end position is marked on the grid (when the game ends the should be at (10,10) index For the to move forward, follow the following rules: 1. Generate random numbers from 0-6: a. If a number is generate: the will remain in its position and WILL NOT move to the next slot b. In case 1 or 2 number is generated the will move vertically to the respective position (row-wise) For example: ifa 2 comes and the is at (4, 2) position, the new position will be (6,2). 2 columns are added to the current column number c. In case 4,5,7 numbers are generated the will move vertically to the respective position (row-wise) For example: If 4 comes, and the is at (4,7) position, then the new position will be at (8,7). 4 rows are added to the current row position Note: In case the end of row or column is reached, i.e. 10 then the max position should not exceed 101 d. In case a 6 number is generated, the will move diagonally 2 steps. For example if the is at (0,0) and a 6 is generated then the new position will be (2.2). ii. if two consecutive 6 are generated then the will follow ruled one time only (cancel one 6 generated) GOOD LUCK
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
