Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/iamjosephmj/bot-save-the-princess
- Owner: iamjosephmj
- Created: 2018-02-20T18:14:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-02-20T19:09:09.000Z (over 6 years ago)
- Last Synced: 2024-01-18T13:27:21.679Z (10 months ago)
- Topics: bot-save-the-princess
- Language: C
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```