Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

#Ruby, 150 bytes

Ruby, 150 bytes

All the string formatting abuse!!!

Credit for formula obtaining the last number goes to @xnor here.

u=1+rand(6)
l=([*1..6]-[u,u^7]).sample
$><<'%11s
 /\%8s
 / \%4d%4s
{ %d }%s}
 \ /%4d%4s
 \/%s/'%[?_*8,?\,円u,?\,円l,?-*7,3*u*l*(u*u-l*l)%7,?/,?_*7]

#Ruby, 150 bytes

All the string formatting abuse!!!

Credit for formula obtaining the last number goes to @xnor here.

u=1+rand(6)
l=([*1..6]-[u,u^7]).sample
$><<'%11s
 /\%8s
 / \%4d%4s
{ %d }%s}
 \ /%4d%4s
 \/%s/'%[?_*8,?\,円u,?\,円l,?-*7,3*u*l*(u*u-l*l)%7,?/,?_*7]

Ruby, 150 bytes

All the string formatting abuse!!!

Credit for formula obtaining the last number goes to @xnor here.

u=1+rand(6)
l=([*1..6]-[u,u^7]).sample
$><<'%11s
 /\%8s
 / \%4d%4s
{ %d }%s}
 \ /%4d%4s
 \/%s/'%[?_*8,?\,円u,?\,円l,?-*7,3*u*l*(u*u-l*l)%7,?/,?_*7]
replaced http://math.stackexchange.com/ with https://math.stackexchange.com/
Source Link

#Ruby, 150 bytes

All the string formatting abuse!!!

Credit for formula obtaining the last number goes to @xnor here here.

u=1+rand(6)
l=([*1..6]-[u,u^7]).sample
$><<'%11s
 /\%8s
 / \%4d%4s
{ %d }%s}
 \ /%4d%4s
 \/%s/'%[?_*8,?\,円u,?\,円l,?-*7,3*u*l*(u*u-l*l)%7,?/,?_*7]

#Ruby, 150 bytes

All the string formatting abuse!!!

Credit for formula obtaining the last number goes to @xnor here.

u=1+rand(6)
l=([*1..6]-[u,u^7]).sample
$><<'%11s
 /\%8s
 / \%4d%4s
{ %d }%s}
 \ /%4d%4s
 \/%s/'%[?_*8,?\,円u,?\,円l,?-*7,3*u*l*(u*u-l*l)%7,?/,?_*7]

#Ruby, 150 bytes

All the string formatting abuse!!!

Credit for formula obtaining the last number goes to @xnor here.

u=1+rand(6)
l=([*1..6]-[u,u^7]).sample
$><<'%11s
 /\%8s
 / \%4d%4s
{ %d }%s}
 \ /%4d%4s
 \/%s/'%[?_*8,?\,円u,?\,円l,?-*7,3*u*l*(u*u-l*l)%7,?/,?_*7]
added 100 characters in body
Source Link
Value Ink
  • 13.5k
  • 1
  • 18
  • 46

#Ruby, 150 bytes

All the string formatting abuse!!!

Credit for formula obtaining the last number goes to @JonathanAllan@xnor here .

u=1+rand(6)
l=([*1..6]-[u,u^7]).sample
$><<'%11s
 /\%8s
 / \%4d%4s
{ %d }%s}
 \ /%4d%4s
 \/%s/'%[?_*8,?\,円u,?\,円l,?-*7,3*u*l*(u*u-l*l)%7,?/,?_*7]

#Ruby, 150 bytes

All the string formatting abuse!!!

Credit for formula obtaining the last number goes to @JonathanAllan

u=1+rand(6)
l=([*1..6]-[u,u^7]).sample
$><<'%11s
 /\%8s
 / \%4d%4s
{ %d }%s}
 \ /%4d%4s
 \/%s/'%[?_*8,?\,円u,?\,円l,?-*7,3*u*l*(u*u-l*l)%7,?/,?_*7]

#Ruby, 150 bytes

All the string formatting abuse!!!

Credit for formula obtaining the last number goes to @xnor here .

u=1+rand(6)
l=([*1..6]-[u,u^7]).sample
$><<'%11s
 /\%8s
 / \%4d%4s
{ %d }%s}
 \ /%4d%4s
 \/%s/'%[?_*8,?\,円u,?\,円l,?-*7,3*u*l*(u*u-l*l)%7,?/,?_*7]
Source Link
Value Ink
  • 13.5k
  • 1
  • 18
  • 46
Loading

AltStyle によって変換されたページ (->オリジナル) /