Deleted member 10234
Banned
-
- Joined
- Jul 10, 2018
- Posts
- 1,138
Wrote this code to emulate femorrhoids happiness (and therefore) behavior with regard to relationships.
Java:
Happy Female::Relationship::IsHappy(Person mate) {
Person[] previousMates = getPreviousMates();
for (Person previousMate : previousMates) {
for (Person::Attribute attr : previousMate.getAttributes()) {
// attributes: height, looks, race, money, job, education, traits, etc
if (mate.compareAttribute(previousMate) == Attribute::Lower) {
// current mate has lower attribute
return NOT_HAPPY;
}
}
}
return HAPPY;
}