I've got a little Problem with my Bot, for it ignores my instructions...
Could you just please check if the following line are OK?
Code: Select all
class AristoWorm
{
public static int[][]$offsets ={{1,0},{0,-1},{-1,0},{0,1}};
public int think(int $dx, int $dy, int[][]$board, int $x, int $y, int $dir, int[][]$enemies)
{
Code: Select all
int $my_direction = $dir;
Code: Select all
return $my_direction;
}
}