Skip to content

Commit

Permalink
trying to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Adiel Felsen authored and Adiel Felsen committed Feb 10, 2019
2 parents 7a9e715 + 688ec6c commit 34ad7d5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 13 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
from profiles import Profile

def main():
profile1 = Profile("joe","M","F",72,list(range(50,90)),5,150,list(range(110,170)),5,20,list(range(18,50)),5,"Jewish","Christian",5,"D",5,"I","E",5,"N","Y",5,"M","M",5,"C",5)
profile2 = Profile("Jane","F","M",68,list(range(40,100)),5,140,list(range(0,1000)),5,19,list(range(18,24)),5,"Buddhist","Hindu",5,"I",9,"E","E",5,"Y","Y",5,"N","N",5,"D",5)
profile3 = Profile("Mary","F","M",62,list(range(73,77)),2,130,list(range(100,250)),7,18,list(range(18,21)),5,"Christian","Satanist",1,"R",10,"E","E",7,"N","N",5,"N","M",2,"D",4)
profile4 = Profile("Jackie","F","M",65,list(range(67,80)),5,180,list(range(120,300)),5,42,list(range(18,30)),5,"Muslim","Muslim",5,"R",5,"I","I",5,"N","N",5,"N","N",5,"C",5)
profile1 = Profile("joe","M","F",72,list(range(50,90)),5,20,list(range(18,50)),5,"Jewish",5,"D",5,"I","E",5,"N","Y",5,"M","M",5,"C",5)
profile2 = Profile("Jane","F","M",68,list(range(40,100)),5,19,list(range(18,24)),5,"Buddhist",5,"I",9,"E","E",5,"Y","Y",5,"N","N",5,"D",5)
profile3 = Profile("Mary","F","M",62,list(range(73,77)),2,18,list(range(18,21)),5,"Christian",1,"R",10,"E","E",7,"N","N",5,"N","M",2,"D",4)
profile4 = Profile("Jackie","F","M",65,list(range(67,80)),5,42,list(range(18,30)),5,"Muslim",5,"R",5,"I","I",5,"N","N",5,"N","N",5,"C",5)

profileList = [profile1,profile3,profile4,profile2]
profileList = [profile2,profile1,profile4,profile3]
print(profile1.find_opposite(profileList))

print()

print(profile1.find_hated(profileList))

print()

print(profile1.find_friend_zone(profileList))

main()
2 changes: 1 addition & 1 deletion profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self, name,

#Basic items with scales (age,height,weight)
self.height = Attribute(height,heightPreference,heightScale)
# self.weight = Attribute(weight, weightPreference, weightScale)
self.weight = Attribute(weight, weightPreference, weightScale)
self.age = Attribute(age, agePreference, ageScale)

#Basic items with preferences
Expand Down

0 comments on commit 34ad7d5

Please sign in to comment.