Created
February 17, 2014 10:23
-
-
Save carlmartus/9048160 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/python | |
# HAIKU generator | |
# /g/ programming project for n00bs | |
from random import choice, randint | |
ENTRY = [ 'sitting', 'being', '>be 12', 'happily', 'regretfully' ] | |
INTERACTIONS = [ | |
('on', 'sofa', 'laying'), | |
('with', 'computer', 'hacking'), | |
('lurking on', '/g/', 'wasting time'), | |
('creeping on', 'dota2', 'losing'), | |
] | |
CONTEMPLATION = [ 'doing nothing', 'productive work', 'thinking', 'eating some food', 'shitposting' ] | |
OUT1 = [ 'but', 'yet', 'still' ] | |
OUT2 = [ 'yearning for', 'believing in', 'looking forward too' ] | |
FEELING = [ 'freedom', 'enlightment', "#YOLO" ] | |
if __name__ == '__main__': | |
entry = choice(ENTRY) | |
location, place, action = choice(INTERACTIONS) | |
contemp = choice(CONTEMPLATION) | |
out1, out2, feeling = choice(OUT1), choice(OUT2), choice(FEELING) | |
print("%s %s %s" % (entry, location, place)) | |
print("%s, %s" % (action, contemp)) | |
maybnot = '' if randint(0, 1) > 0 else 'not' | |
print("%s %s %s %s" % (out1, maybnot, out2, feeling)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment