100 doors: Difference between revisions

Content deleted Content added
→‎{{header|Ruby}}: Added another option demonstrating Range#step.
→‎{{header|Ruby}}: minor tweak to comment and output of last solution
Line 2,807:
</lang>
 
"'''generic true/false, with another way of handling the inner loop" demonstrating Range#step'''
<lang ruby>
doors = [false] * 100
Line 2,815:
end
end
printputs doors.inspect
 
</lang>