Hot answers tagged

38 votes

Hexagonal maze time!

Hexagony, 2437 bytes The long-awaited program is here: ...
boboquack's user avatar
  • 2,309
31 votes

ASCII Maze Rendering 3000

Python 2, 81 bytes def f(M,k=1,r='',b=0): for c in M[k][k::6]:b^=c>' ';r+=' #'[b] print r;f(M,k+3) Try it online! Takes input as a list of strings (or a ...
xnor's user avatar
  • 144k
21 votes
Accepted

A Mouse with Dynamite

Perl, 216 215 bytes Includes +2 for -0p Give input on STDIN. Use % for external walls, # ...
Ton Hospel's user avatar
  • 14.8k
20 votes

Generate an ascii-art non-intersecting path

Befunge, 344 bytes ...
James Holderness's user avatar
19 votes
Accepted

Hexagonal maze time!

Python 2, 291 bytes ...
Ell's user avatar
  • 7,677
19 votes

ASCII Maze Rendering 3000

JavaScript (Node.js), 85 bytes a=>a.flatMap(u=(l,y)=>y%3?[]:[l.flatMap((c,x)=>x<y|(x-=y+3)%6?[]:' #'[u[x]^=c+1<0])]) Try it online! Basic idea is:...
tsh's user avatar
  • 34k
13 votes

A Mouse with Dynamite

JavaScript, 863 834 785 781 bytes Saved 29 bytes thanks to ETHproductions Saved 53 bytes thanks to Jordan ...
DanTheMan's user avatar
  • 4,065
13 votes

Life is a Maze: We take the wrong Path before we learnt to walk

Perl 6, 259 295 bytes ...
smls's user avatar
  • 4,412
12 votes

Generating Picture Mazes

Python 3, 1491 Bytes I found this to be a fun project and very interesting (and somewhat lengthy). When I saw this, I was reminded of the summer I spent exclusively writing and improving a maze ...
Anonymous No Lifer's user avatar
11 votes
Accepted

Generate an ascii-art non-intersecting path

MATLAB, 316 305 300 293 bytes ...
flawr's user avatar
  • 43.7k
11 votes

Constructing an evil maze against random exploration

No dead ends near the entrance, 21,477,560 21,485,005 Try it online! Yay, 21 million. The giant horizontal segments up to row 19 are also removed, so about 20% of the entire grid is just an open space....
Bubbler's user avatar
  • 73.8k
11 votes

Constructing an evil maze against random exploration

Tridents, score 21,947,177 21,951,598 ...
Neil's user avatar
  • 165k
10 votes

Generate a one-path maze

Jelly, 36 35 34 33 32 bytes 2*×5H_2Bị⁾ | _3”-ẋ”+;;Çsẋ2U3¦ṁµY TryItOnline! Builds a nighter™ the other way around to the examples like: ...
Jonathan Allan's user avatar
10 votes
Accepted

Find all the coordinates on a path

Slip, 2 + 1 = 3 bytes +1 byte for the p flag. Code: `# Explanation: The p-flag returns the ...
Adnan's user avatar
  • 44.3k
10 votes

Help Pac-Man count the Pac-Dots

Pyth, 356 345 + 1 = 346 bytes The code contains some unprintables, so here is the reversible xxd hexdump. ...
PurkkaKoodari's user avatar
10 votes

Largest Compatible Maze

Score: 8066 8065 walls I found an 8066 wall solution using dynamic programming over solutions that can be recursively decomposed by splitting on a row or column consisting entirely of floors or ...
Anders Kaseorg's user avatar
9 votes

Constructing an evil maze against random exploration

Two sides of mazes, score 21987725 ...
isaacg's user avatar
  • 42k
8 votes

The arrow maze escape

CJam, 89 81 bytes q~"><v^":A2/{f{\*}z}/sA[1W52-52]er:T,,{[52md]51f%0e=1=},:E{[2704{__T=+}*]\-E&},,g Try it online in the CJam interpreter. How it ...
Dennis's user avatar
  • 210k
8 votes

Find all the coordinates on a path

MATL, 7 6 5 bytes This is using 1-based indexing with (1,1) in the top left corner. oo&fh Explanation: ...
flawr's user avatar
  • 43.7k
8 votes

Find all the coordinates on a path

Grime, 5 bytes pa`\# Try it online! The output format is a bit funky, but OP has stated that it's valid. Explanation Grime is my 2D pattern matching language. ...
Zgarb's user avatar
  • 42.5k
8 votes
Accepted

Life is a Maze: We take the wrong Path before we learnt to walk

Retina, 338 281 275 273 261 bytes ...
TwiNight's user avatar
  • 4,540
8 votes

Constructing an evil maze against random exploration

Even more dead ends, 16,555,009.5 ...
qwr's user avatar
  • 11.5k
7 votes

Find all the coordinates on a path

Python, 67 bytes This is actually just a golf of my Stack Overflow answer on a similar topic. ...
FlipTack's user avatar
  • 14.6k
7 votes

Interactive Maze Solver

JavaScript (ES6),  180  174 bytes Uses prompt() to output the direction and retrieve the result. ...
Arnauld's user avatar
  • 188k
6 votes

Shortest universal maze exit string

C++ and the library from lingeling Summary: A new approach, no new solutions, a nice program to play with, and some interesting results of local non-improvability of the known solutions. Oh, and some ...
Christian Sievers's user avatar
6 votes
Accepted

Chessboard maze

VBA 668 666 633 622 548 510 489 435 331 322 319 315 bytes ...
Joffan's user avatar
  • 852
6 votes

Hexagonal maze time!

Python 3, 466 bytes Would have probably ended up smaller if I used depth-first search or something. This monstrosity uses Dijkstra and is quite fast, but very long. The code defines a function ...
PurkkaKoodari's user avatar
6 votes

Match coordinates with their values

Python, 39 bytes Takes the inputs: a list of (x, y) integer coordinates b list of strings <...
ovs's user avatar
  • 58k
6 votes

Life is a Maze: We take the wrong Path before we learnt to walk

Python 2: 302 bytes ...
deltaepsilon3's user avatar
6 votes

Ice Golf Challenge

JavaScript (ES6), 174 bytes Takes input in curling currying syntax ([x, y])(a), where x and y are the 0-indexed coordinates of the starting position and a[ ] is a ...
Arnauld's user avatar
  • 188k

Only top scored, non community-wiki answers of a minimum length are eligible