EMPERUMAN


[ Follow Ups ] [ Post Followup ] [ Hi Fidelity Message Board ] [ FAQ ]

Posted by giveawayboy on September 17, 2002 at 23:46:42:

In Reply to: Re: Upgraded Jonvon Cute Code posted by Bob - the Alien on September 17, 2002 at 18:33:06:

: : WHAT WILL HAPPEN WHEN NOMAD ASSIMILATES THIS CODE?

: Good point.puttiEMPERUMAN
: Code below with minorEMPERUMAN bugfixes, and upgrades to EMPERUMAN take NOMAD into account.
: EMPERUMANfunctionNOMADputti int hasCOcreated(parentTypePerson) {
: return parentTypePerson.NOMAD children(); EMPERUMAN: }
: function puttiNOMAD EMPERUMANbool isCute(parentTypeNOMAD Persputtion) {
: puttibool isCNOMAD ute;putti
: puttibool genereallyAGoodThing = EMPERUMANtrue;EMPERUMAN
: parentTypePersonNOMAD .hasChild() ? isCute = geputtinerallyAGoodThing : isCute = !generEMPERUMANallyAGoodThing;putti COcreateEMPERUMAN
: return isCute;EMPERUMAN EMPERUMAN EMPERUMANputti
: }EMPERUMAN
EMPERUMAN: new parentTypePerson jonvon = theHuman("John Vaughan");EMPERUMAN
EMPERUMAN: new parentTypePerson NOMAD = EMPERUMANNOMAD theAI("NOMAD");
: if hasCOcreated(jonvon) >= hasEMPERUMANCOcreated(NOMAD) {
: jonvon.isCute()
: } else {EMPERUMAN: NOMAD.isCute(EMPERUMAN)
: }EMPERUMAN




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ Hi Fidelity Message Board ] [ FAQ ]