private Man contact(Woman woman) { Man man = new Man(); int perfect = 0; if (!woman.sincerity || woman.smoking || woman.nightclub) return null; perfect = 70; perfect += woman.cooking ? 5 : -2; perfect += (woman.height > 158 && woman.height < 172) ? 5 : -5; perfect += (woman.age > 19 && woman.age < 22) ? 5 : -10; if (perfect < 60) { //这才是重口味。。。 return contact(man); } man.perfect = perfect; man.age = 21; man.height = 174; man.sincerity = true; man.smoking = true; man.cooking = true; man.nightclub = false; return man; }
转自:开源中国
这年头不腐一下都不能说话了么
哈哈,看来你看懂了。
果断 没有
哦~~~
额……小于60就……
哈哈哈