Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

0 votes

How varied is my obstacle course?

Python3, 380 bytes ...
Ajax1234's user avatar
  • 7,231
0 votes

Does the fishy road have an end?

Pip -r, 85 bytes L#Jg{xPB Y(gDo+:1210@sDp+:2101@s)I#(a:">v<^"@?y)s:aI#(b:"\/"@?y)s:(s+bBX1)-b}x~`[-|]` ...
DLosc's user avatar
  • 39.7k
1 vote

Complete the grid-filling meander

Python3, 1171 bytes Long, but fast. ...
Ajax1234's user avatar
  • 7,231
1 vote

A Turtle Finds a Portal

Python3, 319 bytes ...
Ajax1234's user avatar
  • 7,231
0 votes

Escape the Candlelit Maze

Python3, 351 bytes ...
Ajax1234's user avatar
  • 7,231
1 vote

The Game of Cat And Mice | With Matrices

Python3, 287 bytes ...
Ajax1234's user avatar
  • 7,231
0 votes

Does the fishy road have an end?

Python3, 282 bytes ...
Ajax1234's user avatar
  • 7,231
1 vote

3 Dimensional Minesweeper

Scala 3, 312 bytes A port of @AnrimO's Python answer in Scala. Golfed version. Attempt This Online! ...
138 Aspen's user avatar
  • 5,951
1 vote

3 Dimensional Minesweeper

APL(Dyalog Unicode), 27 bytes SBCS {¯1@⍵+⌿∘∊⍤⊢⌺(3⌿3)∨⌿⍵∘.≡⍳⍺} A dfn takes dimension as its left argument and indices of mines as its right argument. It marks the ...
akamayu's user avatar
  • 391
1 vote

3 Dimensional Minesweeper

J, 24 bytes [:+/2>(>.&|/@:-"1/]#:i.) Try it online! ]#:i.) Create all possible coordinates for the dimensions <...
Jonah's user avatar
  • 33.5k
3 votes

3 Dimensional Minesweeper

MATLAB, 99 bytes function M(s,m) b=zeros(s);for n=m;b(n(1),n(2),n(3))=1;end;c=convn(b,ones(3,3,3),'same');c(b==1)=-1 Uses convn to do the convolution. Mines are ...
rst's user avatar
  • 41
2 votes

3 Dimensional Minesweeper

Python 3, 96 bytes f=lambda m,a=0,*s:[f([y+m*(x!=i)for x,*y in m if-2<x-i<2],*s)for i in range(a)]or~-all(m)|len(m) Try it online! Resursive approach, works ...
Jitse's user avatar
  • 7,246
2 votes

3 Dimensional Minesweeper

JavaScript (Node.js), 116 bytes ...
l4m2's user avatar
  • 24.4k
4 votes

3 Dimensional Minesweeper

JavaScript (Node.js), 117 bytes ...
tsh's user avatar
  • 34.9k
3 votes

3 Dimensional Minesweeper

Charcoal, 34 bytes EθEη⭆Eζ⟦ιλν⟧⎇№εν*§⁺0βLΦε⬤ν‹↔⁻ς§πσ² Try it online! Link is to verbose version of code. Takes the dimensions as three arguments followed by the ...
Neil's user avatar
  • 171k
2 votes

3 Dimensional Minesweeper

Python 3, 189 bytes ...
AnrimO's user avatar
  • 131
4 votes

3 Dimensional Minesweeper

JavaScript (ES6), 147 bytes -1 thanks to emanresu A Expects (dim0, dim1, dim2, mines), where mines is a list of comma-separated strings. Output format: integers ...
Arnauld's user avatar
  • 193k
2 votes

3 Dimensional Minesweeper

Jelly, 19 bytes ŒpạṀỊɗÐḟⱮŒṬ¬S⁹ŒṬN¤o A dyadic Link that accepts the dimensions of the board on the left and the mine locations (1-indexed) on the right and yields ...
Jonathan Allan's user avatar
2 votes

3 Dimensional Minesweeper

Uiua 0.11.0, 2823 bytes SBCS ⍜⊡±‿¯:/+≡⬚0↻☇1¬⇡↯.3¤⊸∊⇡ Try on Uiua Pad!
Tbw's user avatar
  • 2,083
0 votes

Crossing a river with weird animals

Python3, 266 bytes ...
Ajax1234's user avatar
  • 7,231
2 votes

Wait, which tetromino was that?

Python3, 618 bytes ...
Ajax1234's user avatar
  • 7,231

Top 50 recent answers are included