◀ basic-cup

Basic Cup

A brown cup carved out of a solid cube! ☕ (っ˘ω˘ς)

← 01-replicube-tutorial-projects

Basic Cup

GridCode SizeLeaderboardCyclesLeaderboardDate
7x7x719#3707.501#4602026-02-23

Solution

return(x*x>4 or z*z>4 or y<-2)and 15

How it works

Instead of filling everything then carving a hole, we just check if we’re on the cup’s shell:

CheckWhat it means
x*x>4On the left/right wall (x=±3)
z*z>4On the front/back wall (z=±3)
y<-2On the bottom floor (y=-3)

Any of those true? BROWN. Otherwise, empty. That’s a cup!