Advertisement
luckytyphlosion

wtf python

Dec 2nd, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.18 KB | None | 0 0
  1.     max_slot = 17
  2.     sample_length = 9
  3.    
  4.     intro_msg = client.send_message(saved_message.channel,"Time to play GoldenSlots!")
  5.    
  6.     all_goldenslots = []
  7.     goldenslots_emotes = random.sample(config.emotes, sample_length)
  8.    
  9.     reel_1 = goldenslots_emotes
  10.     reel_2 = goldenslots_emotes
  11.     reel_3 = goldenslots_emotes
  12.    
  13.     print goldenslots_emotes
  14.     print "---------------------------\r\n"
  15.    
  16.     for slot in range(max_slot-sample_length):
  17.         temp_emotes = []
  18.         for random_emote in range(3):
  19.             r_emote = random.choice(goldenslots_emotes)
  20.             #print r_emote
  21.             temp_emotes.append(r_emote)
  22.        
  23.         #print "---------------\r\n"
  24.         print temp_emotes[0]
  25.         reel_1.append(temp_emotes[0])
  26.         print temp_emotes[1]
  27.         reel_2.append(temp_emotes[1])
  28.         print temp_emotes[2]
  29.         reel_3.append(temp_emotes[2])
  30.         print "----------------------------\r\n"
  31.    
  32.     print reel_1
  33.     print "\r\n"
  34.     print reel_2
  35.     print "\r\n"
  36.     print reel_3
  37.     print "-----------------\r\n"
  38.    
  39.     random.shuffle(reel_1)
  40.     random.shuffle(reel_2)
  41.     random.shuffle(reel_3)
  42.    
  43.     print reel_1
  44.     print "\r\n"
  45.     print reel_2
  46.     print "\r\n"
  47.     print reel_3
  48.    
  49.     for i in range(max_slot):
  50.         all_goldenslots.append(reel_1[i] + " | " + reel_2[i] + " | " + reel_3[i])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement