scene.org File Archive

File download

<root>­/­parties­/­2024­/­vccc24­/­christmas_challenge/raulgutierrez_pc_ruby_70b_vc3-2024.zip

File size:
5 384 bytes (5.26K)
File date:
2024-12-29 14:13:04
Download count:
all-time: 0

Preview

  • code-and-result.png 4.49K
  • file_id.diz 1.19K
  • gift.rb 70B

file_id.diz

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...