colobot-data/ai/tproc2.txt

19 lines
231 B
Plaintext
Raw Normal View History

2012-09-13 21:35:43 +00:00
void object::Part(float length)
{
for ( int i=0 ; i<2 ; i=i+1 )
{
move(length);
turn(90);
}
}
extern void object::Solution( )
{
float rest = 25;
while ( rest > 0 )
{
Part(rest);
rest = rest-5;
}
}