Hi, Here's how to run Rescue the Princess:
- The code will start by asking the dimensions of the board which must be entered as 3 space seperated integers.
- Then it will go for coordinates of princess and mario, also need to be added as 3 space seperated integers.
- This is followed by numbers of monsters present on the board followed by entering their coordinates.
-
Thats all!!!
-
Code will then display if the game can be won or not and the steps to win if it is possible to win!!!!
- It gives optimal path for Mario to save the princess with given no. of monsters.
- In this Game the monsters are intelligent that means when Mario moves one step, monsters also move one step in the direction of princess or Mario depending upon their distance from them.