Where can I find somebody to write a Python program for a FLAMES game?
Python program for FLAMES game according to the rules specified in the above video:
- def flames(name1, name2):
- for i in range(len(name1)):
- for j in range(len(name2)):
- if(name1[i]==name2[j]):
- name2=name2.replace(name2[j],"*")
- break
- #print(name1)
- #print(name2)
- t=name2.count('*')*2
- print(t)
- results = ['friend','love','affection','marriage','enemy','sister']
- t=len(name1)+len(name2)-t-1
- #print(t)
- i=-1
- while(len(results)>1):
- count=-1
- while(count
- count=count+1
- i=(i+1)%len(results)
- results.remove(results[i-1])
- return results[0]
- name1 = input('Enter name of first person: ').casefold()
- name2 = input('Enter name of second person: ').casefold()
- print('Relationship is', flames(name1, name2))
Some Test cases:
1.
Enter name of first person: amit
Enter name of second person: deepika
Relationship is enemy
2.
Enter name of first person: ira
Enter name of second person: aman
Relationship is affection