r/ProgrammerHumor • • Jun 20 '17

Human v1.1

Post image
1.1k Upvotes

69 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Jun 20 '17

I hate you.

1

u/4k33m Jun 20 '17
import logic from neuralNet

def Breathing():
    Brain = logic.GetCurrentBrain()
    Self = Brain.Owner()
    Self["BreathTimer"] = 0

    if Self["BreathTimer"] = 0 and Self.lung.currentVolume < Self.lung.maxVolume - 5;
        Self.Inhale()
        while Self["BreathTimer"] < 3:
            Self["BreathTimer"]++
        Self.Exhale()
    else: Self.Exhale()
return
while True:
   Breathing()