Tron down to 100X100, My CPU is happy

This commit is contained in:
Gnieark 2016-11-29 18:50:56 +01:00
parent 5830420a6d
commit e210f29626
2 changed files with 3 additions and 3 deletions

View File

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

View File

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