Questions tagged [maze]

A maze is a tour puzzle in the form of a complex branching passage.

A maze is a tour puzzle in the form of a complex branching passage through which the solver must find a route. The pathways and walls in a maze are fixed, and puzzles in which the walls and paths can change during the game are categorised as tour puzzles. The Cretan labyrinth is the oldest known maze.

Technically the maze is distinguished from the labyrinth, which has a single through-route with twists and turns but without branches, and is not designed to be as difficult to navigate. In everyday speech, both maze and labyrinth denote a complex and confusing series of pathways.

1093 questions
-3
votes
1 answer

How to create a puzzle game like Sokoban or Mummy Maze

I'm a beginner game developers, I'm really like puzzle game like Sokoban, Mummy Maze or Chip's Challenge. If i want to create a game like that (a simple game but player have to think to solve it) where should i start, what should i read to get ideas…
Minh P
  • 1
  • 1
-3
votes
1 answer

Number path: using recursion in a maze-like situation

I'm struggling with an assignment for my CS class. Here are some of the instructions: In this assignment, you will write a program that finds a path through a grid of numbers using a technique called depth-first search. As input, you will be given…
-3
votes
1 answer

Python Maze Generation

I am trying to make a python maze generator but I keep getting an IndexError: list index out of range. Any ideas? I'm kinda new to this stuff so I was using the code from rosetta code on maze generation. I am not painting the maze right now I just…
Anmol
  • 1
-3
votes
1 answer

Backtrack maze-game how to put a timer?

import java.awt.Dimension; import java.awt.Font; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JTable; import javax.swing.SwingConstants; import javax.swing.table.DefaultTableCellRenderer; import…
XNC
  • 1
  • 3
-3
votes
2 answers

Maze Solving with recursion C++

I am trying to read a maze (from input.txt) and solve it. This code doesn't work as it should. What is wrong? void Maze::create(vector >&info) { for (int i = 1; (unsigned)i < info.size(); i++) { for (int j = 0; (unsigned)j <…
Shi Yi Lee
  • 37
  • 8
-3
votes
2 answers

Strange order of flow of control

I have been assigned to code a 'maze' program which will allow user to play and solve a random maze by navigating from start to end. So far I've developed a working prototype that runs well for predefined mazes, but the institution requires me to…
MePsyDuck
  • 364
  • 2
  • 15
-3
votes
1 answer

Error in free() in c++

I think is something related to: If you save a pointer to an object allocated on the stack, that object goes out of scope, and then you modify something through that pointer, you can corrupt someone else's memory. Im implementing a RandomMaze and a…
-3
votes
1 answer

representing a given maze in java

So, I'm supposed to represent a maze that I've been given a picture of and create a search-algorithm to solve the maze. It seems like an array would be a good way to represent the maze but I'm having real difficulty just understanding how to…
-3
votes
2 answers

Allow user to move up to five spaces in Maze game

I'm trying to allow the user to enter something like 'w2' or 'w5' and move that many spaces in the up direction in the maze. Currently the problem is, whenever the console see's that a 'w' character is entered, it will move one space up, no matter…
aishere
  • 53
  • 2
  • 9
-3
votes
1 answer

Java game development. Making the monster move random in a maze

I was writing a pacman styled game in which the monsters are assumed to move in a random direction in the maze. But I can't figure it out how to make them adapt the right direction they want. I was using some constants for the directions. public…
Sri Harsha Chilakapati
  • 11,744
  • 6
  • 50
  • 91
-4
votes
4 answers

Java read text file with maze and get all possible paths

EDIT: I have tried to store the lines character by character into a 2D Array. However, the problem is to get all possible paths of a maze from 0 to 1 inside of a text file. And the asterisk are the walls or obstacle. Maze looks like…
tuturyokgaming
  • 249
  • 1
  • 8
  • 21
-4
votes
2 answers

C++: Read text file into 2d array

I'm trying to read the following maze.txt…
RochNoure
  • 77
  • 1
  • 6
-4
votes
2 answers

How do I make a robot (represented by the character 'X') find it's way through a maze using random number generation

I really need help on this. I'm trying to create a robot to find it's way out of a maze. I already created the maze using an array of characters but I literally have no idea how to go about this problem. I would really like some help please. I…
Zack
  • 5
  • 4
-4
votes
1 answer

Recursive division for a maze

I understand the basic principles of the idea behind traversing a maze. I have looked at numerous websites on how to go about making my maze recursive. private static void makeMazeRecursive(char[][]level, int startX, int startY, int endX, int…
TyngeOfTheGinge
  • 524
  • 1
  • 4
  • 14
-4
votes
1 answer

build a perfect maze recursively in python

I have this project to build a perfect maze recursively by using python. I have a MyStack class which creates a stack to track the path that I go through. And a Cell class which represent each square within the maze and store some information. I…
Serena Qi
  • 121
  • 1
  • 3
  • 11
1 2 3
72
73