Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Generate a maze that has **two inputs** for dimensions (X and Y sizes).
- The maze must include:
- - ` ` = (**Double space**) = Open Spot x (Any amount)
- - `WE` = Weapon x 1
- - `\/` = Bear x 1
- - `[]` = Wall x (Random amount)
- - `{}` = Exit x 1 (Inside the maze)
- - `()` = Start x 1 (Inside the maze)
- - A solid "border" of `[]`
- **The maze must be solvable!**
- Example of an outputted maze (5x12):
- `
- [][][][][]
- [] () []
- [] [] []
- [] []WE[]
- [] [][][]
- [] []
- [][][] []
- [] []
- [] []\/[]
- [] [][][]
- [] {}[]
- [][][][][]
- `
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement