Alright so I've been making some good progress with the program I am working on and wanted to know how would I set up the coordinates the maze can be solved once the user inputs the choice of starting location. I could either create coordinates within the same file or create a class and do it there which would be easier or better?
here's my code if you want to check everything:
//Comments are used to understand the code as well as others reading it
#include <iostream>
#include<string>
#include<vector>
#include<fstream>
#include<cstdlib>
using namespace std;
char wall = '1';
bool foot_paths = true;
char INVALID = '1';
bool Start = false;
void options(int, int);
const int ROW = 3;
const int COLUMN = 6;
//bool solution();
//int coord(int x, int y);
//checks to see if the starting point is valid, if they start on a hedge
bool pointValidation(int row, int column) {
The code without proper indention is hard to read.
I could either create coordinates within the same file or create a class and do it there which would be easier or better?
What is the purpose of this coordinates?
Whether a class is better depends on your design. Currently you have three functions with the sole purpose to deal with the maze, hence it would be an idea to make a maze class.