Submitted Solutions
The challenge is over (see the "Description" column for the submitted
sources). We can't decide, which solution has not won, so Jon Erickson, editor
of Dr. Dobb's Journal, increases the number of CD-ROMs to 7, for all people
who have submitted a solution with source code. The winning list is:
Allen Noe
David Finch
Jeremie Allard
Kevin Shepherd
Matthew Ogilvie
Randy Sargent
Stefan Ram
Congratulation!
The challenge maps were:
Sort the submittet solutions (default is sorted by date):
Sort by steps, fuel usage, date
Sort by fuel usage, steps, date
Sort by date
Name | Steps | Fuel Usage | Map | Submit Date (y/m/d h:m:s) | Solution | Path | Comment | Description |
';
$result = mysql_query("select id, name, date, steps, fuel, solution, comment, mapFile, description from solution order by " . $sort);
while ($row = mysql_fetch_row($result)) {
$id = $row[0];
$name = $row[1];
$date = $row[2];
$steps = $row[3];
$fuel = $row[4];
$rawSolution = $row[5];
$mapFile = $row[7];
$smallFile = "$id.small.png";
$largeFile = "$id.large.png";
if (!file_exists($smallFile)) {
createImage($smallFile, "small", $rawSolution, $mapFile);
createImage($largeFile, "large", $rawSolution, $mapFile);
}
$comment = $row[6];
$description = $row[8];
$solution = "";
while (strlen($rawSolution) > 0) {
$solution = $solution . substr($rawSolution, 0, 40) . "
";
$rawSolution = substr($rawSolution, 40);
}
print("$name | $steps | $fuel | $mapFile | $date | show solution | | $comment | show description (" . strlen($description) . " chars) |
");
}
mysql_free_result($result);
echo '';
?>
, Frank Buß