Alt history randomized - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: General (https://python-forum.io/forum-1.html) +--- Forum: Code sharing (https://python-forum.io/forum-5.html) +--- Thread: Alt history randomized (/thread-390.html) |
Alt history randomized - jamesfrancis - Oct-08-2016 I made this program called the Alt history randomized. As you can see, it prints a string that basically creates a new, random historical figure, his/her political ideology, title, and nation they rule over. I'm thinking about someday expanding this to create a graphical output of some sort based on the character (imagine Julius Caesar with a sombrero) anyways, enjoy! :dance: nations = ['germany','mexico','france','japan','the moon','japan','babylon','canada','greenland','texis','iceland','cuba','panama','colombia','jamica','venezuela','brazil','antarcrica','england','ireland','scotland','norway','sweden','spain','poland','portugal','italy','austra','austria-hungary','denmark','rome','greece','carthage','yugoslavia','china','egypt','mali','libya','sudan','congo','iraq','russia','vietnam','singapore'] ideologys = ['socialist', 'republican', 'communist', 'jewish anarchist', 'fascist','anarchist','anarcho communist','feminist'] titles = ['king','queen','president','doge','emperor','field marshal','archduke','prince','grand prince','grand duke','duke','marquess','count','earl','viscount','baron','esquire','grand king','god king','kaiser','czar','samraat','pharoh','raj'] rulers= ['francesco bernoulli','julius caesar','louis XIV','genghis khan','montezuma','elizabeth I','william I','james I','tokugawa leyasu','charlemagne','napoleon','adolf hitler','joseph stalin','benito mussolini','winston churchill','vladimir lenin','attila','genghis khan','pol pot','vlad tepes','leopold II','bashar al-assad','george w. bush','ldi amin data',] #all of these can be added too ad infinitum print "\t\tWelcome to the alternate history randomizer\n\n\t\tPress enter for your new historical identity\n\n" import random while 1: #add softwere switch to terminate n = str((random.choice(nations)).title()) i = str((random.choice(ideologys)).title()) t = str((random.choice(titles)).title()) r = str((random.choice(rulers)).title()) if n == 'louis XIV': n = 'Louis XIV' raw_input() print r + ' the ' + i + ' ' + t + ' of ' + n + '\n' #Made by James Francis 10/8/2016 #email: [email protected] RE: Alt history randomized - Skaperen - Oct-09-2016 see if you can make it look like a Wikipedia page to add an air of authority to it :D Imagine Rome being a colony of the Greenlandic Empire (ruled by king Skaperen) :P RE: Alt history randomized - jamesfrancis - Oct-09-2016 :D Heck ya dude that would be hilarious. I just started learning python this past couple of month, so this is the most complicated thing i've ever made. But in time i could certainly do that. Mabye even hook it up as part of a website. I can see it now... A full detailed history of the life and times of Francesco Bernoulli, and his assent to the status of god king of Greenland :dance: :dance: :dance: :dance: |