◀ simple-sushi

Simple Sushi

A tiny sushi roll! Green seaweed wrap, white rice, red fish center (っ˘ڡ˘ς)

← 01-replicube-tutorial-projects

Simple Sushi

GridCode SizeLeaderboardCyclesLeaderboardDate
5x5x520#5419.520#19482026-02-23

Solution

return x|y==0 and 7 or x*x+y*y<4 or 11

How it works

One-liner, three zones:

CheckResultColor
x|y==0Both x and y are zeroRED (fish!)
x*x+y*y<4Returns true = WHITERice ring
Otherwise11GREEN (seaweed wrap)

The true = WHITE trick saves us from writing or 1 at the end! Z is completely ignored since every layer is identical.