Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iamjosephmj/bot-save-the-princess

Bot-save-the-Princess
https://github.com/iamjosephmj/bot-save-the-princess

bot-save-the-princess

Last synced: 1 day ago
JSON representation

Bot-save-the-Princess

Awesome Lists containing this project

README

        

# Bot-save-the-Princess

Princess 'P' is trapped inside a Box-World. The program is designed in such a way that a Bot 'B' saves the princess with minimim path.

# How-to-play

- Compile the c file.
- Give the dimension of box as the command-line arguments(say you want to enter the dimension 3x3 then enter "./a.out 3 3").
- Then pattern of input is shown in the example below:
```
./a.out 3 3
/ - P
- - /
/ - B
```
another example,
```
./a.out 3 3
- - P
- - -
- - B
```
- Here '/' means Block and '-' means free path.
- The results will be in the format(states the movement of the Bot):

for the first example:
```
LEFT TOP TOP RIGHT
```

for the second example:
```
TOP TOP
```