Tron down to 100X100, My CPU is happy

master
Gnieark 8 years ago
parent 5830420a6d
commit e210f29626

@ -1,7 +1,7 @@
<?php <?php
class Coords{ class Coords{
private static $min = 0; private static $min = 0;
private static $max = 999; private static $max = 99;
public $x; public $x;
public $y; public $y;

@ -77,7 +77,7 @@ switch($params['action']){
//put all non empty coords on array //put all non empty coords on array
$busyCells = array(); $busyCells = array();
error_log ("plop"); //error_log ("plop");
foreach($params['board'] as $tail){ foreach($params['board'] as $tail){
foreach($tail as $coord){ foreach($tail as $coord){
$busyCells[] = new Coords($coord[0],$coord[1]); $busyCells[] = new Coords($coord[0],$coord[1]);
@ -113,7 +113,7 @@ switch($params['action']){
} }
} }
echo '{"play":"'.$bestChoice .'"}'; echo '{"play":"'.$bestChoice .'"}';
error_log($bestChoice); //error_log($bestChoice);
break; break;
default: default:

Loading…
Cancel
Save