SHARE
TWEET

Untitled

a guest Nov 19th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top