The objective in this game is to create the longest path between the start and the finish.
Below is a demonstration.
Press Go!
;
//Prepare maps.
$example1[] = "sraoorooof";
$example1[] = "sorooroorf";
$example1[] = "soorooorof";
$example1[] = "sooorrroof";
$example1[] = "soooooooof";
$myparams['teleports'] = 0;
$myparams['walls'] = 0;
$map1 = GenerateShapedMap($example1, $myparams);
$challenge2[] = "sooraooof";
$challenge2[] = "sooorooof";
$challenge2[] = "sooooooof";
$challenge2[] = "sooooooof";
$challenge2[] = "sooooooof";
$myparams['checkpoints'] = 1;
$myparams['teleports'] = 0;
$myparams['walls'] = 2;
$map2 = GenerateShapedMap($challenge2, $myparams);
$challenge3[] = "soooraoof";
$challenge3[] = "sooooroof";
$challenge3[] = "sooooooof";
$challenge3[] = "sooroooof";
$challenge3[] = "soobrooof";
$myparams['checkpoints'] = 2;
$myparams['teleports'] = 0;
$myparams['walls'] = 4;
$map3 = GenerateShapedMap($challenge3, $myparams);
$challenge4[] = "suooooaooof";
$challenge4[] = "sooooooooof";
$challenge4[] = "sooooooooof";
$challenge4[] = "sooooooorof";
$challenge4[] = "soooooootof";
$myparams['checkpoints'] = 1;
$myparams['teleports'] = 1;
$myparams['walls'] = 4;
$map4 = GenerateShapedMap($challenge4, $myparams);
$challenge5[] = "soooaobtorf";
$challenge5[] = "soocrooooof";
$challenge5[] = "souooooooof";
$challenge5[] = "sooooooooof";
$challenge5[] = "sooooooooof";
$myparams['checkpoints'] = 3;
$myparams['teleports'] = 1;
$myparams['walls'] = 5;
$map5 = GenerateShapedMap($challenge5, $myparams);
//Display maps.
echo '
';
echo DisplayMap($map1, 1, 'puzzle');
echo '
';
echo DisplayMap($map2, 2, 'puzzle');
echo '
';
echo DisplayMap($map3, 3, 'puzzle');
echo '
';
echo DisplayMap($map4, 4, 'puzzle');
echo '
';
echo DisplayMap($map5, 5, 'puzzle');
echo '
';
?>