<?php
class Mouse {
	public $x;
	public $y;
	
	public $speed = 2;
	
	public function __construct() {
		$this->x = mt_rand();
		$this->y = mt_rand();
	}
	
	public function move() {
		for ($x = $this->x - $speed; $x <= $this->x + $speed; $x++) {
			for ($y = $this->y - $speed; $y <= $this->y + $speed; $y++) {
				//определяем расстояние до кошки и высчитываем баллы
			}
		}
	}	
}