Skip to main content

Questions tagged [maze]

This tag is for challenges relating to mazes, typically generating or navigating them. This often is used with the [ascii-art] tag, a common method of demonstrating the mazes

Filter by
Sorted by
Tagged with
4 votes
2 answers
277 views

Given a wall maze of 50x50, exactly same generating algorithm, at different RNG, so every two positions are connected by exactly one path, etc. Write two functions: One takes the maze as input and ...
l4m2's user avatar
  • 32.7k
2 votes
0 answers
194 views

Given a wall maze of 50x50, write two functions: One takes the maze as input and returns a positive integer; The other takes the integer and walk through the maze from left-top to right-bottom. At ...
l4m2's user avatar
  • 32.7k
18 votes
5 answers
1k views

You need to hide in a maze from a robot which methodically follows the left hand wall rule. That is, it enters, immediately turns left, and will always move keeping its left hand on the wall. It only ...
Steve Bennett's user avatar
7 votes
4 answers
997 views

Finding the shortest path through a maze is boring. The scenic route is more interesting. Write a program or function to find the longest possible path through a maze, visiting each space 0 or 1 times ...
Steve Bennett's user avatar
3 votes
1 answer
341 views

Sokobunny 1 You love buns! You love them so much, that you chased one down a bunburrow. The burrows are like mazes, and YOU WANT TO CATCH THE FLUFFBALLS!!!! However, the buns are smart! You can't ...
ToAskOrNotToAsk's user avatar
11 votes
4 answers
721 views

You are an evil wizard, doing evil wizard business, when suddenly your crystal ball alerts you of a hero on their way to defeat you. To crush their hopes and dreams, you decide to trap the hero in a ...
AnttiP's user avatar
  • 8,048
7 votes
2 answers
403 views

Background Consider an \$n\times n\$ grid, where each cell is either empty (denoted by .) or a wall (denoted by #). We say that ...
Delfad0r's user avatar
  • 6,286
15 votes
8 answers
2k views

Inspired by this Puzzling challenge, and easier version of my previous challenge. Challenge A 2D rectangular grid is given, where each cell is either an empty space or a wall. You start at the top ...
Bubbler's user avatar
  • 79.3k
42 votes
8 answers
3k views

RollerCoaster Tycoon 2's maze is the inspiration for this question. Credit to Marcel Vos for thoroughly breaking the classic RCT2 AI. The pathfinding AI in this question is the AI in the latest ...
orlp's user avatar
  • 39.4k
13 votes
3 answers
523 views

Inspired by this Puzzling challenge. Challenge Given a 2D rectangular grid where each cell is either an empty space or a wall, find the path (or one of the paths) from the top left cell to the bottom ...
Bubbler's user avatar
  • 79.3k
45 votes
6 answers
4k views

I don't like typing, so I draw my mazes in a very simple format: # ##### # # # ### # # # # # # # # ##### # Isn't it a-maze-ing? Of course, I think all ...
Hiatsu's user avatar
  • 719
14 votes
2 answers
587 views

Bob got kidnapped and is stuck in a maze. Your job is to help him find a way out. But since it is a very dark and scary maze, he can't see anything. He can only feel walls when he runs in to it, and ...
Maltysen's user avatar
  • 25.8k
10 votes
2 answers
2k views

Challenge Design a compression algorithm specialized for compressing ASCII mazes. You will need to create both a compression algorithm and a decompression algorithm. Your score will be based on the ...
Beefster's user avatar
  • 10k
15 votes
3 answers
707 views

Kids-related intro Whenever I take my kids to an amusement park, the kids get more nervous the closer we are to the park, with the nerve peak when we are in the parking lot and find no place to park. ...
Charlie's user avatar
  • 13k
24 votes
3 answers
869 views

The goal of this challenge is to write a program or function that returns the least amount of strikes needed to complete a given course. Input The layout of the course can be passed in any suitable ...
Manfred Radlwimmer's user avatar

15 30 50 per page