Re: maze Programming Software Development by VernonDozier … need to add the robot going through the maze and its frustrating cause I know its prob.…I'd say. You don't have a maze and you don't have a way to …= 1; maze[4][5] = 2; maze[6][7] = 3; maze[1][1] = 1; maze[8][8] = 4; maze[3][2] = 3; maze[4][1]… = 2; [/code] Your maze[][] … maze Programming Software Development by malugirl4 …[0] = 1; maze[4][5] = 2; maze[6][7] = 3; maze[1][1] = 1; maze[8][8] = 4; maze[3][2] = 3; maze[4][1] = 2…: " + robot_y); System.out.println ("Robot State: "); switch( maze[(robot_y*10) + robot_x]) { case 1:robot_state = 1; System.out.println… Re: maze Programming Software Development by BestJewSinceJC For "going through the maze" I'd recommend searching daniweb and reading the other five hundred maze threads. Re: maze Programming Software Development by sillyboy ok, first of all you need to post that in code tags so it doesn't break my eyes trying to read. from what i gather, are you even getting a user input? [code="java"]maze[(robot_y*10) + robot_x][/code] what is this supposed to do? Re: maze Programming Software Development by malugirl4 Sorry this is my first time on this site. Well I dont know if I need that, or if i'm fine with the rest of the code. I just need to add the robot going through the maze and its frustrating cause I know its prob. something simple. Re: Maze Programming Software Development by format_c …//pass blank charater to current position in array else maze[i][j]='#'; //else pass hash charater to current …position in array cout<<maze[i][j]; //display maze to screen } } cout<<…y from user cout<<endl; startfinish(maze,xstart,ystart,xfinish,yfinish); //call start finish … Re: Maze Programming Software Development by format_c … recursive function 2 find a path through the maze i know its going to b using the … int ); int main() { srand( (unsigned)time( NULL ) ); char maze[20][70]; for (int i =0; i<20; i…rand()%2; if (x==0) maze[i][j]=' '; else maze[i][j]='#'; cout<<maze[i][j]; } } cout<… Maze Programming Software Development by format_c Hi.. i am totally lost with this random 20x70 maze generator i have to create. can some one give me some insight on how im supposed to start this? i know i use 2 for loops but my question is.. how do i create the actual blank space maze pattern. Re: Maze Programming Software Development by Software guy … but if you think for few mins, you can create maze using it. Run this program and you will see what… <stdlib.h> using namespace std; int main() { char MAZE[20][70]; int i,j,k,R_Num[3]; /* Simple "… Maze problem Programming Software Development by Gsterminator … if(maze[row][col]==' '){ maze[row][col]=-3; }else if(maze[row][col]=='-6'){ maze[row][col]=-6; }else{ maze[row][col]=-2; } } } } void Maze::printMaze… Maze program for AP Comp Sci Programming Software Development by bcassillo …BufferedReader br = new BufferedReader (new InputStreamReader(System.in)); maze[a1][a2]='X'; direction=facingRight; for(int j=1;…( int y=0; y<=11; y++){ System.out.print(maze[x][y] + " "); } System.out.println();… Maze Traversal Programming Software Development by rfrapp … { (*(maze))[col] = '#'; (*(maze + 11))[col] = '#'; (*(maze + row))[0] = '#'; (*(maze + row))[11] = '#'; } } (*(maze) + 4)[11] = ' '; (*(maze + 3))[1] = '#'; (*(maze + 3))[2] = '#'; (*(maze + 2))[2] = '#'; (*(maze + 1))[4] = '#'; (*(maze + 2))[4] = '#'; (*(maze + 3… Re: Maze Traversal Programming Software Development by rfrapp …} } (*(maze + 3))[1] = '#'; (*(maze + 3))[2] = '#'; (*(maze + 2))[2] = '#'; (*(maze + 1))[4] = '#'; (*(maze + 2))[4] = '#'; (*(maze + 3))[4] = '#'; (*(maze + 5))[1] = '#'; (*(maze + 5))[2] = '#'; (*(maze + 5))[3] = '#'; (*(maze + 6))[3] = '#'; (*(maze Re: Maze problem Programming Software Development by Lucaci Andrew …;fstream> #include <string> using namespace std; class Maze{ public: void defaultArray(); void readMaze(string file); int pathLength(); void… maze generation c++ Programming Software Development by nousername19 …== 1) { if (currentCell + rowCells < Maze.GetTotalNodes()) { if (Maze.find(currentCell) != Maze.find(currentCell + rowCells) && cells[currentCell… == 3) { if ((currentCell + 1) < Maze.GetTotalNodes()) { if (Maze.find(currentCell) != Maze.find(currentCell + 1) && (currentCell % rowCells… Maze Program Programming Software Development by paulzef …quot;,Log[-1] elif 'W' in get_legal_directions(maze,(row,col)): #getpos=get_position_in_direction((row,col),"W…: print "Invalid Command:",command def move(maze,(row,col),direction): position=(row,col) can_move = … Maze class Programming Software Development by effBlam …; int startY; char end; int endX; int endY; char[][] maze; public Maze(char[][] maze) { this.maze = maze; } public void startPoint(){ for (int i=0; i… Maze using recursion Programming Software Development by Marissak …c.y; } private: int x, y; friend class Maze; }; class Maze { public: Maze(); void exitMaze(); void exitMazeCell(Cell, int, int); private:…;< endl; out << endl; return out; } }; Maze::Maze() : exitMarker('e'), entryMarker('m'), visited('.'), passage('0'), wall('1') … Maze Solver Recursive Function Problem Programming Software Development by FloridaJoe55 …} else { if((pp_row != ms->N) && (ms->maze[pp_row][pp_col] & south != 0) && (mspth [pp_row …{ pp_row ++; } else { if((pp_col != 0) && (ms->maze[pp_row][pp_col] & west != 0) && (mspth [pp_row][pp_col… Maze solver issues Programming Software Development by Afupi … explore(); void printMaze(); void printPath(); }; #endif #include "maze.h" Maze::Maze() { exitFound = false; direction = E; //read file variable …[xCoord][yCoord]; path.push(currentPos); visited.push(currentPos); } void Maze::explore() { if(direction == E){ //Examining North if(mazeArray[… Re: maze generation c++ Programming Software Development by WaltP What does "[I]my code for the maze generator is not working[/I]"? Are we supposed to guess? Re: Maze Program Programming Software Development by woooee We don't have the code that creates "maze" so have no idea what kind of object it … should access it the same way whatever the object. if maze[row-1,col] == 'O' or 'F': --> this doesn't… always be "True" if maze(row,col) == 'F': --> this implies that maze is a function And you should test… Re: Maze class Programming Software Development by effBlam … much the program opens a txt file with a sample maze to be read into a 2d array which ive already…; open path. Im supposed to find a solution to the maze using recursion from the starting point "s" to… Re: Maze class Programming Software Development by NormR1 Work on the program's requirements one by one. How is the program going to read in the file with the sample maze and save its contents? Re: Maze class Programming Software Development by effBlam … array already. Now i have a visual representation of the maze able to print using my displayMaze() method. Now i just… Maze Homeword Question Programming Software Development by GirouxCalder … what I'm missing. Please let me know. [code]// Maze program ver 1.0 // #include <iostream> #… #include <cassert> using namespace std; //Read Maze function void readMaze(string maze1[][100],int &rows, int… &cols) { // Reads in the maze file. ifstream maze_in("maze1.txt"); int i, j… Re: Maze Program Programming Software Development by TrustyTony >if maze[row-1,col] == 'O' or 'F': --> this doesn't make sense to me and will always be "True" To nit pic it is allways True boolean valu first condition is True, otherwice second expression 'F' which is not a False-like value and therefore acts as True value. Maze solver - Please Help! Programming Software Development by Dmc15 … and any number of columns in width. I need the maze itself to be brought in as input from a file… even know how to find the starting point of the maze. Heres what I have so far: [CODE]def main… a function that looks to find the start of the maze. Then I think I need a function that checks north… maze while loop problem Programming Software Development by seacat123 …<fstream> using namespace std; //----------------------------------------------------Print maze void fnPrintMaze(int m,int n,int**a) …>>m; fin>>n; maze= new int*[m]; //defining rows for (int… Re: maze while loop problem Programming Software Development by Dave Sinkula … <fstream> using namespace std; //----------------------------------------------------Print maze void fnPrintMaze(int m,int n,int**a) {… programe { int m, n; int **maze; fstream fin("maze.txt", ios::in); fin>>…) fin>>maze[i][j]; fnPrintMaze(m,n,maze); fnFindPath( m,n, maze); cout<<…