I spent a good 15-30 minutes writing this, and realized that it might be a fun excersize in creative coding to make code for everyday life events. An example would be:
I'm thirsty...
a. Too Tired to move
b. TV is more important.
....1. Could I go on a commercial?
....2. Is this show worth dying of thirst for?
c. I'll have the woman get it.
And so-on.
So with this idea in mind, I'll share my quick project!
<?php
// This will start you out...
// A PHP algorythm for knowing ahead of time if we will help you or not!
// You start out here like everyone else...
$noob = 'false';
// And post your first topic...
$helpme = $_GET['help'];
// But when you come in here and:
$demands = 'true';
// Without any...
$sample = $_GET['your_code'];
// And you want us to make your $problem = 'solved'; ...
$problem = 'unsolved';
function FREECODE(){
while ($demands = 'true'){
if (isset($sample)){
if ($noob = 'true'){
$demands = 'denied';
NOSOUP4U();
} else {
$demands = 'true';
GIVEHELP();
}
} elseif (!isset($sample)){
$noob = 'true';
}
}
}
function NOSOUP4U(){
$postcount = $_GET['post_count'];
$i = $postcount + 1;
while ($postcount <= $i){
if ($noob = 'true'){
echo 'Read a book.';
} else {
FREECODE();
} if ($postcount > $i){
FREECODE(); // Loop back to see if you are qualified for help yet
}
}
}
function GIVEHELP()
{
$response = $_GET['response'];
$answer = $_POST['answer'];
$logic = $_POST['ideas'];
while (isset($sample) && $noob = 'false' && $demands = 'true'){
echo "How may I be of assistance to you?";
if ($response = $answer){
$demands = 'false';
$problem = 'solved';
} else {
$answer = $logic;
echo "I hope this answer helps! If you still need help, be sure to send another ".$response."!";
}
}
}
// Now that we've declared our scenario's for the Help Algorythm...
// Let's figure out where to start!
if (isset($helpme){
FREECODE();
} else {
echo 'Thank god I don't have to write someone elses homework today!';
}
?>
Creative? Anyone ever done something like this?
Share yours!

New Topic/Question
Reply


MultiQuote










|