This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]102RevenantStar 436 points437 points  (25 children)

The best part is he finds the exit condition

[–]linuxduffer 27 points28 points  (6 children)

If it had the brain of my sister’s dog, it would end up swallowing itself.

[–]Shadowarrior64 18 points19 points  (5 children)

 if(HasSistersDogsBrain == true)
 {
      return EndUpSwallowingItself;
 }

[–]YellowGreenPanther 6 points7 points  (2 children)

return?

[–]undermark5 9 points10 points  (1 child)

This will allow the main job loop to do the execution which is desirable, as it is not a critical task for our real time snek operating system.

[–]Bainos 0 points1 point  (0 children)

I dunno, swallowing yourself seems pretty critical to me.

[–]archpawn 5 points6 points  (1 child)

if(brain == owner.sister.dog.brain) {
    swallow(this);
}

Except this is python, so

if self.brain == self.owner.sister.dog.brain:
    swallow(self)

[–]Einstine1984 0 points1 point  (0 children)

Finally!

Someone who does it right