<?php

error_reporting(E_ALL);
ini_set('display_error', 1);
/* Autoloaders are soooo nice :) */
require_once 'GetterSetter.php';
require_once 'Localization.php';
require_once 'Sensors.php';
require_once 'Robot.php';
require_once 'Movement.php';
$config = ['pHit' => 0.6, 'pMiss' => 0.2, 'world' => ['green', 'red', 'red', 'green', 'green'], 'probabilityMatrix' => [0, 1, 0, 0, 0], 'biasMatrix' => ['over' => 0.1, 'under' => 0.1, 'exact' => 0.8]];
$moveProgram = [1, 1];
// Let's build us a robot :)
$robot = new Robot($config);
$robot->setSensor(new Sensors([]))->setLocalization(new Localization([]))->setMovement(new Movement($config['biasMatrix']));
foreach ($robot->getSensor() as $i => $sensorData) {
    $robot->sense($sensorData);
    $robot->move($moveProgram[$i]);
}
$robot->showWorld();