/usr/share/games/colobot/ai/tlaby1.txt is in colobot-common 0.1.6-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | extern void object::Example( )
{
object front, left, right;
front = radar(Barrier, 0, 45, 0, 5);
left = radar(Barrier, 90, 45, 0, 5);
right = radar(Barrier, -90, 45, 0, 5);
if ( front == null )
{
move(5);
return;
}
if ( left == null )
{
turn(90);
move(5);
return;
}
if ( right == null )
{
turn(-90);
move(5);
return;
}
}
|