Categories
Funny Programming

And I was coding… and stumbled upon AI

Well, I decided I would take a stab at AI (Artificial Intelligence). I always found it mind blowing that people are actually trying to do that with technology. Just amazing. So I thought I’d try and simplify AI down to 1 function. Since I believe that essentially life can be made into 1 function.

< ?php
function analyzeReproduction($person) {
  if ((sizeof($person[‘penis’]) < 5) || $person[‘job’] == "programmer"){
    unlink("/usr/local/bin/sex");
    exec("/usr/local/bin/masturbate");
    $resultVar = 0;
  } else {
    exec("set SEXLIVE=true");
    exec("set GREATSEX=true");
    exec("set HOTGIRLS=true");
    exec("/usr/bin/woohoo");
    exec("/usr/bin/ahh");
    $resultVar = 1;
  }
  return $resultVar;
}
?>

Anyone want to guess how it returned when I ran it?

3 replies on “And I was coding… and stumbled upon AI”

Leave a Reply to McRatt Cancel reply

Your email address will not be published. Required fields are marked *