/usr/share/games/colobot/ai/tsniff.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 | extern void object::Example( )
{
for ( int y=0 ; y<6 ; y=y+1 )
{
for ( int x=0 ; x<5 ; x=x+1 )
{
sniff();
move(5);
}
sniff();
if ( y%2 == 0 )
{
turn(90);
move(5);
turn(90);
}
else
{
turn(-90);
move(5);
turn(-90);
}
}
}
|