Skip to main content
the requirements changed by 41 spaces
Source Link

Ruby - 139 129 126 123 121

Hoisted "puts" outside of array creation (suggestion from bitpwner).

puts (0..9).map{|i|(i*3...(i+1)*4).map{|j|"/#{'**'*j}\\".rjust(82+j41+j,' ')}}+["%86s"%'|+["%45s"%'|--------|']*11<<'%86s'%'|________|'|']*11<<'%45s'%'|________|'

Ungolfed ("puts" unhoisted):

# print fill patterns from the intervals
# [0..3, 3..7, 6..11, 9..15, 12..19, 15..23, 18..27, 21..31, 24..35, 27..39]
# centered on columns 81-82
(0..9).each { |i|
  (i*3...(i+1)*4).each { |j|    # x...y vs x..y-1 saves a char
    puts "/#{'**'*j}\\".rjust(82+j41+j,' ')
  }
}
# print the stump
puts ("%86s\n""%45s\n" % '|--------|') * 11
puts '%86s''%45s' % '|________|'

Ruby - 139 129 126 123 121

Hoisted "puts" outside of array creation (suggestion from bitpwner).

puts (0..9).map{|i|(i*3...(i+1)*4).map{|j|"/#{'**'*j}\\".rjust(82+j,' ')}}+["%86s"%'|--------|']*11<<'%86s'%'|________|'

Ungolfed ("puts" unhoisted):

# print fill patterns from the intervals
# [0..3, 3..7, 6..11, 9..15, 12..19, 15..23, 18..27, 21..31, 24..35, 27..39]
# centered on columns 81-82
(0..9).each { |i|
  (i*3...(i+1)*4).each { |j|    # x...y vs x..y-1 saves a char
    puts "/#{'**'*j}\\".rjust(82+j,' ')
  }
}
# print the stump
puts ("%86s\n" % '|--------|') * 11
puts '%86s' % '|________|'

Ruby - 139 129 126 123 121

Hoisted "puts" outside of array creation (suggestion from bitpwner).

puts (0..9).map{|i|(i*3...(i+1)*4).map{|j|"/#{'**'*j}\\".rjust(41+j,' ')}}+["%45s"%'|--------|']*11<<'%45s'%'|________|'

Ungolfed ("puts" unhoisted):

# print fill patterns from the intervals
# [0..3, 3..7, 6..11, 9..15, 12..19, 15..23, 18..27, 21..31, 24..35, 27..39]
# centered on columns 81-82
(0..9).each { |i|
  (i*3...(i+1)*4).each { |j|    # x...y vs x..y-1 saves a char
    puts "/#{'**'*j}\\".rjust(41+j,' ')
  }
}
# print the stump
puts ("%45s\n" % '|--------|') * 11
puts '%45s' % '|________|'
hoist "puts"
Source Link

Ruby - 139 129 126 123123 121

Hoisted "puts" outside of array creation (suggestion from bitpwner).


 puts (0..9).map{|i|(i*3...(i+1)*4).map{|j|puts"|j|"/#{'**'*j}\\"\\".rjust(82+j,' ')}}
puts"%86s\n"%'|+["%86s"%'|--------|'*11+'%86s'%'|________|'|']*11<<'%86s'%'|________|'

Ungolfed:


Ungolfed ("puts" unhoisted):

# print fill patterns from the intervals
# [0..3, 3..7, 6..11, 9..15, 12..19, 15..23, 18..27, 21..31, 24..35, 27..39]
# centered on columns 81-82
(0..9).each { |i|
  (i*3...(i+1)*4).each { |j|    # x...y vs x..y-1 saves a char
    puts "/#{'**'*j}\\".rjust(82+j,' ')
  }
}
# print the stump
puts ("%86s\n" % '|--------|') * 11
puts '%86s' % '|________|'

Ruby - 139 129 126 123


 (0..9).map{|i|(i*3...(i+1)*4).map{|j|puts"/#{'**'*j}\\".rjust(82+j,' ')}}
puts"%86s\n"%'|--------|'*11+'%86s'%'|________|'

Ungolfed:


# print fill patterns from the intervals
# [0..3, 3..7, 6..11, 9..15, 12..19, 15..23, 18..27, 21..31, 24..35, 27..39]
# centered on columns 81-82
(0..9).each { |i|
  (i*3...(i+1)*4).each { |j|    # x...y vs x..y-1 saves a char
    puts "/#{'**'*j}\\".rjust(82+j,' ')
  }
}
# print the stump
puts ("%86s\n" % '|--------|') * 11
puts '%86s' % '|________|'

Ruby - 139 129 126 123 121

Hoisted "puts" outside of array creation (suggestion from bitpwner).

puts (0..9).map{|i|(i*3...(i+1)*4).map{|j|"/#{'**'*j}\\".rjust(82+j,' ')}}+["%86s"%'|--------|']*11<<'%86s'%'|________|'

Ungolfed ("puts" unhoisted):

# print fill patterns from the intervals
# [0..3, 3..7, 6..11, 9..15, 12..19, 15..23, 18..27, 21..31, 24..35, 27..39]
# centered on columns 81-82
(0..9).each { |i|
  (i*3...(i+1)*4).each { |j|    # x...y vs x..y-1 saves a char
    puts "/#{'**'*j}\\".rjust(82+j,' ')
  }
}
# print the stump
puts ("%86s\n" % '|--------|') * 11
puts '%86s' % '|________|'
diminishing returns
Source Link

Ruby - 139 129 127126 123


(0..9).map{|i|(i*3...(i+1)*4).map{|j|puts"/#{'**'*j}\\".rjust(82+j,' ')}}
puts"%86s\n"%'|--------|'*11
puts'%86s'%'|________|'|'*11+'%86s'%'|________|'

Ungolfed:


# print fill patterns from the intervals
# [0..3, 3..7, 6..11, 9..15, 12..19, 15..23, 18..27, 21..31, 24..35, 27..39]
# centered on columns 81-82
(0..9).each { |i|
  (i*3...(i+1)*4).each { |j|    # x...y vs x..y-1 saves a char
    puts "/#{'**'*j}\\".rjust(82+j,' ')
  }
}
# print the stump
puts ("%86s\n" % '|--------|') * 11
puts '%86s' % '|________|'

Ruby - 139 129 127


(0..9).map{|i|(i*3...(i+1)*4).map{|j|puts"/#{'**'*j}\\".rjust(82+j,' ')}}
puts"%86s\n"%'|--------|'*11
puts'%86s'%'|________|'

Ungolfed:


# print fill patterns from the intervals
# [0..3, 3..7, 6..11, 9..15, 12..19, 15..23, 18..27, 21..31, 24..35, 27..39]
# centered on columns 81-82
(0..9).each { |i|
  (i*3...(i+1)*4).each { |j|    # x...y vs x..y-1 saves a char
    puts "/#{'**'*j}\\".rjust(82+j,' ')
  }
}
# print the stump
puts ("%86s\n" % '|--------|') * 11
puts '%86s' % '|________|'

Ruby - 139 129 126 123


(0..9).map{|i|(i*3...(i+1)*4).map{|j|puts"/#{'**'*j}\\".rjust(82+j,' ')}}
puts"%86s\n"%'|--------|'*11+'%86s'%'|________|'

Ungolfed:


# print fill patterns from the intervals
# [0..3, 3..7, 6..11, 9..15, 12..19, 15..23, 18..27, 21..31, 24..35, 27..39]
# centered on columns 81-82
(0..9).each { |i|
  (i*3...(i+1)*4).each { |j|    # x...y vs x..y-1 saves a char
    puts "/#{'**'*j}\\".rjust(82+j,' ')
  }
}
# print the stump
puts ("%86s\n" % '|--------|') * 11
puts '%86s' % '|________|'
simplify & shave off 2 more strokes
Source Link
Loading
improve putting, add ungolfed version
Source Link
Loading
golfed
Source Link
Loading
Source Link
Loading