◀ fancy-hourglass

Fancy Hourglass

An octahedron with a paint job walks into a bar... (◕‿◕✿)

← 04-alice-creations-02

Fancy Hourglass

GridCode SizeLeaderboardCyclesLeaderboardDate
13x13x1329#2415.182#15972025-02-23

Solution

return abs(y)>=abs(x)+abs(z)and(abs(y)>5 and 16 or y<0 and 14 or 9)

How it works

The shape is an octahedron (diamond) aligned to the Y axis: abs(y) >= abs(x) + abs(z). That’s the L1 norm condition that makes those nice pointy tips.

Three colors: darkbrown caps at the very top and bottom (abs(y) > 5, which only fires at the extent boundary), yellow for the upper half, and lightblue for the lower half. All packed into one chained and/or ternary.