Created
May 29, 2021 20:49
-
-
Save emresaglam/fa96e5c8b9108f474d7fbf9254930f83 to your computer and use it in GitHub Desktop.
Creates a number of random ASCII ravers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
def get_rnd(a): | |
import random | |
random_index = random.randint(0, len(a)-1) | |
return a[random_index] | |
heads = ['⊙', 'o', 'ö', 'O', '𑃰'] | |
left_hands = ['\\', '|'] | |
right_hands = ['/', '|'] | |
number_of_ravers = 10 | |
for i in range(number_of_ravers): | |
print("{}{}{}".format(get_rnd(left_hands),get_rnd(heads),get_rnd(right_hands)), end="") | |
print() |
Try to increase number_of_ravers
to 300 and run while true; do clear; python ravers.py; sleep 1; done
and watch them dance 🤣
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The output looks like this: