2020-05-08 00:37:29 +02:00
|
|
|
<?php
|
|
|
|
|
2020-05-10 23:46:44 +02:00
|
|
|
use Automata\NC;
|
2020-05-10 21:17:12 +02:00
|
|
|
use Automata\ToolData;
|
2020-05-08 00:37:29 +02:00
|
|
|
|
|
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
|
|
|
|
2020-05-10 23:46:44 +02:00
|
|
|
$nc = new NC();
|
|
|
|
$nc->TM->write(new ToolData(1, 5500, 2));
|
|
|
|
$nc->TM->write(new ToolData(2, 3000, 61379));
|
|
|
|
(new ProgramLoader)->loadPrograms($nc);
|
|
|
|
|
|
|
|
$nc->loadProgram(9002);
|
|
|
|
$nc->run();
|
2020-05-08 00:37:29 +02:00
|
|
|
|