Gift
Author: Raul Gutierrez
Category: Christmas Challenge
System: Windows, Linux or any other able to run Ruby
Language: Ruby (tested on version 3.3.6)
Len source code: 70 bytes
Len exe file: N/A (interpreted, not compiled)
Len code only: N/A (valid for assembler only)
Instructions:
Get Ruby binaries for your system (if you don't have it)
I got "rubyinstaller-3.3.6-2-x64" from the "7-ZIP ARCHIVES"
section in https://rubyinstaller.org/downloads/
Uncompress to a folder. A "bin" subfolder will be created.
Save my gift.rb file to that subfolder.
From command line (CMD) go to that subfolder and execute:
ruby gift.rb
If you don't want to install Ruby, you can run my program
on https://try.ruby-lang.org/ (paste code on editor and
click the RUN button)
Description:
Secuentially (no loops) prints characteres required to draw
the gift box. No loops. Just one variable, using more
increased code size.
Comments:
I apologise for not being retro, but I wanted to know the
minimum size I could reach and Ruby allowed me shorter and
more compact code, no need for declarations, includes,
variable types, start/end constructions, type conversion,
blanks between different tokens...