Permalink
Browse files

Disable debugging logging

  • Loading branch information...
1 parent 46b74fc commit 696d0094973acc7066794c903dc0b6901d71851d @awwaiid committed Jul 16, 2012
Showing with 8 additions and 8 deletions.
  1. +8 −8 bot/phpbot.php
View
@@ -18,7 +18,7 @@
$start_world = json_decode($line);
$start_score = $start_world->score;
- fwrite(STDERR, "Looking ahead 22 moves\n");
+ // fwrite(STDERR, "Looking ahead 22 moves\n");
for ($i = 0; $i < 22; $i++) {
$dir = shell_exec("lamda-miner/phpbot.php '" . $line . "'");
$line = Lifter::checkMove($line, $dir);
@@ -28,15 +28,15 @@
}
- foreach ($move_queue as $k=>$m) {
- fwrite (STDERR, $m);
- }
- fwrite (STDERR, "\n");
+ // foreach ($move_queue as $k=>$m) {
+ // fwrite (STDERR, $m);
+ // }
+ // fwrite (STDERR, "\n");
$ending_score = $world->score;
- fwrite(STDERR, $start_score . ' - ' . $ending_score . "\n");
+ // fwrite(STDERR, $start_score . ' - ' . $ending_score . "\n");
if ($start_score >= $ending_score) {
- fwrite(STDERR, "Aborting because score gets worse\n");
+ // fwrite(STDERR, "Aborting because score gets worse\n");
$dir = 'A';
}
else {
@@ -56,4 +56,4 @@ public static function checkMove($world_json, $direction) {
$shell_return = shell_exec($cmd);
return $shell_return;
}
-}
+}

0 comments on commit 696d009

Please sign in to comment.