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

added 682 characters in body
Source Link
Night2
  • 6k
  • 1
  • 15
  • 47

PHP (7.4), 91 bytes

Generates the output string using a template string and strtr array replacement mode.

fn($s,$e,$m,$w)=>strtr(' 0
3(121)4',['&|\/'[$s],'^.oO'[$e],'v.oO'[$m],' ('[$w],' )'[$w]])

Try it online!


PHP (7.4), 93 bytes

Generates the output string as it goes on.

fn($s,$e,$m,$w)=>' '.'&|\/'[$s].'
'.' ('[$w].'('.($y='^.oO'[$e]).'v.oO'[$m]."$y)".' )'[$w];

Try it online!

PHP (7.4), 93 bytes

fn($s,$e,$m,$w)=>' '.'&|\/'[$s].'
'.' ('[$w].'('.($y='^.oO'[$e]).'v.oO'[$m]."$y)".' )'[$w];

Try it online!

PHP (7.4), 91 bytes

Generates the output string using a template string and strtr array replacement mode.

fn($s,$e,$m,$w)=>strtr(' 0
3(121)4',['&|\/'[$s],'^.oO'[$e],'v.oO'[$m],' ('[$w],' )'[$w]])

Try it online!


PHP (7.4), 93 bytes

Generates the output string as it goes on.

fn($s,$e,$m,$w)=>' '.'&|\/'[$s].'
'.' ('[$w].'('.($y='^.oO'[$e]).'v.oO'[$m]."$y)".' )'[$w];

Try it online!

Source Link
Night2
  • 6k
  • 1
  • 15
  • 47

PHP (7.4), 93 bytes

fn($s,$e,$m,$w)=>' '.'&|\/'[$s].'
'.' ('[$w].'('.($y='^.oO'[$e]).'v.oO'[$m]."$y)".' )'[$w];

Try it online!

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