Renamed solutions to examples (colobot/colobot#502)
parent
d94c01127f
commit
6d56bc546d
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution()
|
extern void object::Example()
|
||||||
{
|
{
|
||||||
turn(90);
|
turn(90);
|
||||||
while (true)
|
while (true)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution()
|
extern void object::Example()
|
||||||
{
|
{
|
||||||
object item;
|
object item;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution()
|
extern void object::Example()
|
||||||
{
|
{
|
||||||
object item;
|
object item;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution()
|
extern void object::Example()
|
||||||
{
|
{
|
||||||
|
|
||||||
object item;
|
object item;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution()
|
extern void object::Example()
|
||||||
{
|
{
|
||||||
|
|
||||||
object item;
|
object item;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution()
|
extern void object::Example()
|
||||||
{
|
{
|
||||||
|
|
||||||
grab();
|
grab();
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution()
|
extern void object::Example()
|
||||||
{
|
{
|
||||||
|
|
||||||
object item;
|
object item;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
aim(-3);
|
aim(-3);
|
||||||
while ( true )
|
while ( true )
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
point start;
|
point start;
|
||||||
start = position; // remember starting position
|
start = position; // remember starting position
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
while ( true )
|
while ( true )
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
float dir;
|
float dir;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
float dir, len;
|
float dir, len;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
while ( true )
|
while ( true )
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
for ( int i=0 ; i<6 ; i=i+1 ) // repeat 6 times
|
for ( int i=0 ; i<6 ; i=i+1 ) // repeat 6 times
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
for ( int i=0 ; i<4 ; i=i+1 ) // repeat 4 times
|
for ( int i=0 ; i<4 ; i=i+1 ) // repeat 4 times
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
object front, left, right;
|
object front, left, right;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
while ( true )
|
while ( true )
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
move(20); // go to checkpoint 1
|
move(20); // go to checkpoint 1
|
||||||
turn(90);
|
turn(90);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
float dist, dir;
|
float dist, dir;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
float dist, dir;
|
float dist, dir;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
Square(15);
|
Square(15);
|
||||||
Square(25);
|
Square(25);
|
||||||
|
|
|
@ -7,7 +7,7 @@ void object::Part(float length)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
float rest = 25;
|
float rest = 25;
|
||||||
while ( rest > 0 )
|
while ( rest > 0 )
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
object item;
|
object item;
|
||||||
float dir, dist;
|
float dir, dist;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
while ( true )
|
while ( true )
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
object item;
|
object item;
|
||||||
point dest;
|
point dest;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
for ( int i=0 ; i<3 ; i=i+1 )
|
for ( int i=0 ; i<3 ; i=i+1 )
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
for ( int i=0 ; i<2 ; i=i+1 )
|
for ( int i=0 ; i<2 ; i=i+1 )
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
object item;
|
object item;
|
||||||
point dest;
|
point dest;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
for ( int y=0 ; y<6 ; y=y+1 )
|
for ( int y=0 ; y<6 ; y=y+1 )
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution()
|
extern void object::Example()
|
||||||
{
|
{
|
||||||
|
|
||||||
aim(0);
|
aim(0);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution()
|
extern void object::Example()
|
||||||
{
|
{
|
||||||
|
|
||||||
object item;
|
object item;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution()
|
extern void object::Example()
|
||||||
{
|
{
|
||||||
|
|
||||||
object item;
|
object item;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution()
|
extern void object::Example()
|
||||||
{
|
{
|
||||||
|
|
||||||
move(20);
|
move(20);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution()
|
extern void object::Example()
|
||||||
{
|
{
|
||||||
|
|
||||||
object item;
|
object item;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
while ( true )
|
while ( true )
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution( )
|
extern void object::Example( )
|
||||||
{
|
{
|
||||||
while ( true )
|
while ( true )
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution()
|
extern void object::Example()
|
||||||
{
|
{
|
||||||
|
|
||||||
object item;
|
object item;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern void object::Solution()
|
extern void object::Example()
|
||||||
{
|
{
|
||||||
|
|
||||||
object item;
|
object item;
|
||||||
|
|
Loading…
Reference in New Issue