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.

  1. < ?php
  2. function analyzeReproduction($person) {
  3.   if ((sizeof($person[‘penis’]) < 5) || $person[‘job’] == "programmer"){
  4.     unlink("/usr/local/bin/sex");
  5.     exec("/usr/local/bin/masturbate");
  6.     $resultVar = 0;
  7.   } else {
  8.     exec("set SEXLIVE=true");
  9.     exec("set GREATSEX=true");
  10.     exec("set HOTGIRLS=true");
  11.     exec("/usr/bin/woohoo");
  12.     exec("/usr/bin/ahh");
  13.     $resultVar = 1;
  14.   }
  15.   return $resultVar;
  16. }
  17. ?>

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

Tags:


Related Posts

  • No Related Post

3 Responses to “And I was coding… and stumbled upon AI”

  1. McRatt Says:

    error in line two near ‘*****’.
    ;-)

  2. Robert Says:

    Outch.

    Fixed

  3. Antony Says:

    And the female version?

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution.