本文主要是介绍我的恋爱算法,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
阅读原文请点击
摘要: 感觉,恋爱好难啊,为此写出了我心中的恋爱算法,希望可以给予我和认同我观点的人以指导。 恋爱算法: love(girl) if I don't feel girl likes me return false; TIME = girlValue(girl); while (time
感觉,恋爱好难啊,为此写出了我心中的恋爱算法,希望可以给予我和认同我观点的人以指导。
恋爱算法:
love(girl)if I don't feel girl likes mereturn false;TIME = girlValue(girl);while (time <= TIME)state = myAction(girl);if(isMyGirlFriend(girl))return true;switch (state)case MAXLIKE : return showTheLove(girl);case LOVE :if(showTheLove(girl))return true;elsereturn showLove(newGirl);TIME = girlValue(girl);return false;grilValue(girl)value + = matchDreamGirl(girl);value + = levelOfCencerningMe(girl);value + = feedbackOfMyAction(girl);value + = condition(girl);return value;myAction(gril)//I take the actions....return myState;showTheLove(girl)return the girl's feeling about my showing the lovematchDreamGirl(girl)// fxyuer is my dream girlreturn the level of girl matching fxyuer;levelOfCencerningMe(girl)return the level of girl cencerning me;feedbackOfMyAction(girl)return the girl's feedback of my action;condition(girl)//like different cities/different ideas/different attitudes/...return the condition of girl;
这就是我的恋爱算法,由于实践原因,会有bug,希望各位可以提出意见。不甚感激!
——fxleyu
20130514
阅读原文请点击
这篇关于我的恋爱算法的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!