forked from BYUCS235/Maze-Lab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPathfinder.h
37 lines (32 loc) · 897 Bytes
/
Pathfinder.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef PATHFINDER_H
#define PATHFINDER_H
#include "PathfinderInterface.h"
#include <sstream>
#include <array>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
class Pathfinder : public PathfinderInterface {
private:
bool foundSolution;
static const int ROW_SIZE = 5;
static const int COL_SIZE = 5;
static const int FLOOR_SIZE = 5;
static const int BACKGROUND = 1;
static const int WALL = 0;
static const int TEMPORARY = 2;
static const int PATH = 3;
int THE_MAZE[ROW_SIZE][COL_SIZE][FLOOR_SIZE];
int tempMaze[ROW_SIZE][COL_SIZE][FLOOR_SIZE];
vector<string> solution;
public:
Pathfinder();
~Pathfinder();
string toString() const;
void createRandomMaze();
bool importMaze(string file_name);
vector<string> solveMaze();
vector<string> findPath(int x, int y, int z, vector<string> sol);
};
#endif