◀ staircase

Staircase

A diagonal staircase in just 5 tokens! Can't get simpler than this (⌐■_■)

← 02-intro-challenges-1

#1 on the code size leaderboard!

Staircase

GridCode SizeLeaderboardCyclesLeaderboardDate
7x7x75🏆 #15.000#75482026-02-23

Solution

return x==-y

How it works

The staircase lives where x == -y. Returning true gives us WHITE (1) for free, and false gives empty. That’s it. Five tokens. Done.