Re: EMPERUMAN


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

Posted by jonvon on September 18, 2002 at 08:10:58:

In Reply to: EMPERUMAN posted by giveawayboy on September 17, 2002 at 23:46:42:

bill you give new meaning to the phrase "spagetti code". i could just about eat this, sort of.

: : : 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 ]