SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- /* Your code here! */
- #include <vector>
- #include "cs225/PNG.h"
- #include "dsets.h"
- #include <set>
- class SquareMaze {
- private:
- std::vector<std::vector<bool>*> *bottomWall;
- std::vector<std::vector<bool>*> *rightWall;
- int width;
- int height;
- public:
- SquareMaze();
- void makeMaze(int width, int height);
- bool canTravel(int x, int y, int dir) const;
- void setWall(int x, int y, int dir, bool exists);
- std::vector<int> solveMaze();
- cs225::PNG* drawMaze() const;
- cs225::PNG* drawMazeWithSolution();
- };
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.