49
\$\begingroup\$

This challenge is in tribute to the winner of Best Picture at the Oscars 2017, La La Land Moonlight!


Your challenge is to print the text

La La Land
pause one second, then change the text to show

La La Land Moonlight
The original text (La La Land) must have a strikethrough. This can be achieved either by clearing the screen, drawing on top of the original text, or by any other clever solutions.

This is a so lowest bytes wins. Standard code-golf rules apply.

\$\endgroup\$
2
  • \$\begingroup\$ Oh wow! My challenge was so well received it was posted on Twitter \$\endgroup\$ Feb 28, 2017 at 2:48
  • \$\begingroup\$ I wonder if any languages can use the fact the La La La(nd) pattern \$\endgroup\$
    – 12Me21
    Feb 28, 2017 at 13:52

32 Answers 32

1
2
0
\$\begingroup\$

Haskell 170 158 153 149 bytes

import System.Posix.Unistd
import System.IO
l="La La Land"
p=putStr
main=p l>>hFlush stdout>>usleep(10^6)>>p(('\b'<$l)++(l>>=(:"\822"))++"moonlight")

Lots of imports required for the flush and the delay. There's probably other golfing techniques I could implement. Works by appending \822 (the strikethrough modifier) to each character in l, then printing this followed by "moonlight".

Wow my first use of <$.

\$\endgroup\$
0
\$\begingroup\$

HTML + JS 6 + jQuery, 153 bytes

Longer than this answer due to the script tag but I anyway wanted to do it.

setTimeout('$("*").html`<s>La La Land</s> Moonlight`',1e3)
<script src=http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js></script>La La Land

\$\endgroup\$
1
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.