python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to implment walls in Maze game in Java GUI
I have an image with walls in it for my little maze game but currently, my player can move around freely meaning on top of the walls. If I want to restrict this free movement with walls, do I have to ...
Jeff
Votes: 0
Answers: 0
How does this maze algorithm return the shortest path correctly?
I came across this maze solver algorithm:
public class Maze {
public static void main(String[] args) {
char[][] maze = {
{'.', '.', '.', '0', '0', '0', '0', '0', '0', '0'}...
Miles
Votes: 0
Answers: 2
Is there a way to get a tuple's data when using recursion?
I'm solving a maze problem with recursion. The x,y coordinates are represented as tuples. When I call the function recursively, it tries to retrieve the data from the tuple, the int value in current_r...
the_fledgling_programmer
Votes: 0
Answers: 1
Maze solver gets stuck in a loop (Stack overflow error)
My recursive solver gets stuck at a dead end and can't turn around, causing a stack overflow error. Where am I going wrong?
solI is a public array. x2 and y2 are public solution coordinates.
0-wall
1-...
SenorGeraldo
Votes: 0
Answers: 1