Advertisement
Guest User

Maze question.

a guest
Oct 29th, 2015
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. Generate a maze that has **two inputs** for dimensions (X and Y sizes).
  2.  
  3. The maze must include:
  4.  
  5. - ` ` = (**Double space**) = Open Spot x (Any amount)
  6. - `WE` = Weapon x 1
  7. - `\/` = Bear x 1
  8. - `[]` = Wall x (Random amount)
  9. - `{}` = Exit x 1 (Inside the maze)
  10. - `()` = Start x 1 (Inside the maze)
  11. - A solid "border" of `[]`
  12.  
  13. **The maze must be solvable!**
  14.  
  15. Example of an outputted maze (5x12):
  16. `
  17. [][][][][]
  18. [] () []
  19. [] [] []
  20. [] []WE[]
  21. [] [][][]
  22. [] []
  23. [][][] []
  24. [] []
  25. [] []\/[]
  26. [] [][][]
  27. [] {}[]
  28. [][][][][]
  29. `
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement