Sorry, not quite. A slight addition needs to be made here. This bug
fix implements our cats. Add after the if statement:
while (random() < .65)
{
meow;
go(outside);
meow;
climb(screen);
go(inside);
}
use(catbox);
--
Sue Brezden
Real World: Room 1B17 Net World: ihnp4!drutx!slb
AT&T Information Systems
11900 North Pecos
Westminster, Co. 80234
(303)538-3829
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your god may be dead, but mine aren't.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sean
--
- Sean Casey UUCP: se...@ukma.UUCP or
- Department of Mathematics {cbosgd,anlams,hasmed}!ukma!sean
- University of Kentucky ARPA: ukma!se...@ANL-MCS.ARPA
All these cat simulation programs are forgetting something very
important. They all forget to declare the cat! How do you expect the
cat to work properly if it is not declared. Therefore, all new cat
simulations should include the following code:
cat(mom,dad)
female mom;
male dad;
{
/* The rest of the cat simulation goes here. */
}
Some method of determing the behavior of the cat from the values of mom
and dad should also be included. Since I'm not very knowledgeble about
cats, I won't attempt to do this. Also, when the cat dies, (ie, when it
exits the while (alive) loop), should it call exit()? If so, what
value should it exit with?
Here are a few new functions which a good simulation should include:
cough_up(hairball);
run_from(dog);
scratch(dog,nose);
climb(tree);
get_stuck_in(tree);
Hopefully, a pretty good simulation of a cat will be implemented
somewhere in a few months.
Don Nash
UUCP: ...!{ihnp4,allegra,seismo!ut-sally}!ut-ngp!dlnash
APRA: dln...@ngp.UTEXAS.EDU
Here is another needed cat simulation function:
extern fed = FALSE;
wakeup_and_feed()
{
if ( time() >= 6AM && sleeping(human) )
{
while ( sleeping(human) )
{
jump_on(human);
sniff(human);
bite(human, nose);
}
}
while ( awake(human) && ! fed )
{
bite(human, ankle);
bite(human, heel);
rub_on_leg(human);
climb(wall);
}
}
--
Marcel-Franck Simon ihnp4!{mhuxr, hl3b5b}!mfs
" Papa Loko, ou se' van, ou-a pouse'-n alle'
Nou se' papiyon, n-a pote' nouvel bay Agwe' "
while (getdownfrom(whereiam) != 0)
meow;
Also known as:
watch(cat-tv);
Cheers. CPR
When the cat simulation algorithm has been completed, could somebody *please*
post the final version? I'd like to run it in the background (will this be
possible?) on the terminal in my office, as we have a lot of mice here this
fall. (If this won't run in the background, I'd like whatever advice is
available on this unusual subject.)
Helen Anne
{ucbvax,ihnp4,cbosgd,hplabs,decwrl,unisoft,fortune,sun}!dual!hav
"J. Frank Parnell."
"Ott . . . Otto."
"Do you ever feel as if your mind had started to erode?"
And I thought you said you didn't have the software!
--Evan Marcus
--
{ucbvax|decvax}!vax135!petsd!petfe!evan
...!pedsgd!pedsga!evan
Allow 6 to 8 weeks for delivery.
Wisconsin residents add 5% sales tax.
Member FSLIC.
I think these cat routines should be written in Lisp!!
After all if a cat isn't well-defined,what is !?
And you think you know computers,
Larry Palena
St. Joseph's Univ.
{ astrovax | allegra | bpa | burdvax } !sjuvax!lp102911