Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. /* Your code here! */
  2. #include <vector>
  3. #include "cs225/PNG.h"
  4. #include "dsets.h"
  5. #include <set>
  6.  
  7. class SquareMaze {
  8. private:
  9. std::vector<std::vector<bool>*> *bottomWall;
  10. std::vector<std::vector<bool>*> *rightWall;
  11. int width;
  12. int height;
  13. public:
  14. SquareMaze();
  15. void makeMaze(int width, int height);
  16. bool canTravel(int x, int y, int dir) const;
  17. void setWall(int x, int y, int dir, bool exists);
  18. std::vector<int> solveMaze();
  19. cs225::PNG* drawMaze() const;
  20. cs225::PNG* drawMazeWithSolution();
  21. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement