Skip to content

Instantly share code, notes, and snippets.

@sanvishal
Last active March 17, 2018 10:51
Show Gist options
  • Save sanvishal/7cf78c3e63ea223418fac138ee8ad04b to your computer and use it in GitHub Desktop.
Save sanvishal/7cf78c3e63ea223418fac138ee8ad04b to your computer and use it in GitHub Desktop.
#FLAMES
print(' '+5*(u"\U0001F497 ")+'WELCOME TO FLAMES'+' '+5*(u"\U0001F497 ")+' ')
control = 1
while (control == 1):
print('\n')
n1 = input('Enter your name: '); n2 = input('Enter your dream partner name: ')
input_name1 = list(n1.lower().strip().split())
input_name2 = list(n2.lower().strip().split())
name1=[]
for i in range(len(input_name1)):
name1 = name1 + list(input_name1[i])
name2=[]
for i in range(len(input_name2)):
name2 = name2 + list(input_name2[i])
if name1 != name2:
delete_name1_char=0
for i in range(len(name1)):
if name1[i] in name2:
name2.remove(name1[i])
delete_name1_char+=1
count = len(name1)+len(name2)-delete_name1_char
flames = list("Friends Lover Affection Marriage Enemy Sister".split())
flames_count=0
while (len(flames)!=1):
for i in range(count):
if i == max(range(count)):
flames.remove(flames[flames_count])
flames_count-=1
flames_count += 1
if flames_count > len(flames)-1: flames_count=0
c = flames[0]
flamedict = {
'Friends':"You both must be Friends",
'Lover': n2 +' must be your lover <3',
'Affection': n2 +' has affection on you',
'Marriage': n2 + ' is going to marry you in the future',
'Enemy' : 'You both must be enemies',
'Sister' : 'You both must be sisters'
}
print('\n')
print(flamedict[c])
elif(name1==name2): print("\npls enter different names")
else: print("\nError!, please enter names correctly")
control = int(input('\n~<Enter 1 to Continue, 0 to Exit>~: '))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment