← Back to archive

Stdle #160 · comparisons · 2026-11-13

What does this Ruby snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

puts 0.object_id
puts 1.object_id
puts 2.object_id
puts(-1.object_id)
Comparisons
4 lines
4 attempts left

Answer & explanation