newcommers=["Rick","Morty","Jerry","Mr Poopy Buthole","Karl Gustav VII","Erik"]
day=1
defnewDay():
globalday
important=['delicious','fabulous','very tasty','good','very good','not bad at all','favorable','ok','nutritious','italian','mouth-watering','objectively pleasing','aromatic','something to write home about','probably digestible','edible','a complex blend of carbon-based chemistry','not sanitized"); DROP TABLE MEALS;--','not poisoned','of unknown origin','crunchy','finger-licking good','fantastic','the best one we had so far','fancy','extrordinary','pleasant']
print"{} has the most points ({}) and is going to cook".format(tied[0].name,str(tied[0].kukPoints))
kuk=tied[0]
else:
print"{} people are tied with {} points each".format(str(len(tied)),str(tied[0].kukPoints))
print"",
forpersonintied:
printperson.name+",",
print""
kuk=random.choice(tied)
print"{} was selected at random and is going to cook".format(kuk.name)
cookies.remove(kuk)
#kuking and points
reward=points[n_people]
payment=points[n_people]/(n_people-1)
kuk.kukPoints-=reward
kuk.kukMealCount+=1
kuk.kukServingCount+=n_people
kuk.eatenCount+=1
forcookieincookies:
cookie.kukPoints+=payment
cookie.eatenCount+=1
m=Meal(kuk.name,day);
m.eaters="many people"
print""
print"{} cooked for {} people and cleared {} KukPoints".format(kuk.name,n_people,reward)
print"{} people gained {} KukPoints each".format(n_people-1,payment)
print"The meal was {}!".format(random.choice(important[:day]))
day=day+1
if__name__=='__main__':
if__name__=='__main__':
try:
try:
@ -67,104 +148,3 @@ if __name__ == '__main__':
forname,personinpeople.iteritems():
forname,personinpeople.iteritems():
person.attendanceRate=0.2+random.random()*0.8
person.attendanceRate=0.2+random.random()*0.8
points={}
points[3]=52
points[4]=69
points[5]=80
points[6]=90
points[7]=102
points[8]=112
points[9]=120
points[10]=135
important=['delicious','fabulous','very tasty','good','very good','not bad at all','favorable','ok','nutritious','italian','mouth-watering','objectively pleasing','aromatic','something to write home about','probably digestible','edible','a complex blend of carbon-based chemistry','not sanitized"); DROP TABLE MEALS;--','not poisoned','of unknown origin','crunchy','finger-licking good','fantastic','the best one we had so far','fancy','extrordinary','pleasant']
newcommers=["Rick","Morty","Jerry","Mr Poopy Buthole","Karl Gustav VII","Erik"]