Ara Kooser wrote:
>I have two instances called and running. They interact with each
> other and I would like one of the instances to cease to exist in the
> second round based on a given condition. How do you kill an instance?
What you really need is for your main code to stop using the instan
"Ara Kooser" <[EMAIL PROTECTED]> wrote
> I have two instances called and running. They interact with each
> other and I would like one of the instances to cease to exist in the
> second round based on a given condition. How do you kill an
> instance?
Either set the variable to something else o
"Ara Kooser" <[EMAIL PROTECTED]> wrote
> The code is below. I have Red and Yellow as my instances and I
> want
> them to die when life = 0 and not show up in the preceding rounds of
> the game.
I'm not sure I understand this last bit. Won't they already have shown
up in the preceding bits of
This is a little more complicated.
The more object oriented way:
Make each cell know its location and have a reference to the world its in.
You can have the world set the object the coordinates the item is at when it
adds it to itself. When the life==0, you can have the yeast cell call a
remove( s
I have two instances called and running. They interact with each
other and I would like one of the instances to cease to exist in the
second round based on a given condition. How do you kill an instance?
The code is below. I have Red and Yellow as my instances and I want
them to die when lif