Make your cursor bounce around your terminal like in Pong. #Pong50
boop(){ (play -q -V0 -n synth sin 400 trim 0 0.12 vol 0.5 &); };clear;cols=$(tput cols);lines=$(tput lines);x=1;y=1;xd=1;yd=1;while true;do if [[ $x == $lines || $x == 0 ]]; then boop; xd=$(( $xd *-1 )) ; fi ; if [[ $y == $cols || $y == 0 ]]; then boop; yd=$(( $yd * -1 )) ; fi ; x=$(( $x + $xd )); y=$(( $y + $yd )); printf "\33[%s;%sH" $x $y; sleep 0.05 ;done

@climagic This is where I draw the line with what is a one liner.

@rastinza climagic isn't just one liners, but this wouldn't even fit on "that other site" even without the description.

Follow

@climagic Well, I can't waste my office hours doing this anymore.
I guess I'll have to implement doom in some random ascii with a single line of code...

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.