Renamed solutions to examples (colobot/colobot#502)

coolant-mod
krzys-h 2015-07-13 19:03:34 +02:00
parent d94c01127f
commit 6d56bc546d
38 changed files with 38 additions and 38 deletions

View File

@ -1,4 +1,4 @@
extern void object::Solution() extern void object::Example()
{ {
turn(90); turn(90);
while (true) while (true)

View File

@ -1,4 +1,4 @@
extern void object::Solution() extern void object::Example()
{ {
object item; object item;

View File

@ -1,4 +1,4 @@
extern void object::Solution() extern void object::Example()
{ {
object item; object item;

View File

@ -1,4 +1,4 @@
extern void object::Solution() extern void object::Example()
{ {
object item; object item;

View File

@ -1,4 +1,4 @@
extern void object::Solution() extern void object::Example()
{ {
object item; object item;

View File

@ -1,4 +1,4 @@
extern void object::Solution() extern void object::Example()
{ {
grab(); grab();

View File

@ -1,4 +1,4 @@
extern void object::Solution() extern void object::Example()
{ {
object item; object item;

View File

@ -1,4 +1,4 @@
extern void object::Solution( ) extern void object::Example( )
{ {
aim(-3); aim(-3);
while ( true ) while ( true )

View File

@ -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

View File

@ -1,4 +1,4 @@
extern void object::Solution( ) extern void object::Example( )
{ {
while ( true ) while ( true )
{ {

View File

@ -1,4 +1,4 @@
extern void object::Solution( ) extern void object::Example( )
{ {
float dir; float dir;

View File

@ -1,4 +1,4 @@
extern void object::Solution( ) extern void object::Example( )
{ {
float dir, len; float dir, len;

View File

@ -1,4 +1,4 @@
extern void object::Solution( ) extern void object::Example( )
{ {
while ( true ) while ( true )
{ {

View File

@ -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
{ {

View File

@ -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
{ {

View File

@ -1,4 +1,4 @@
extern void object::Solution( ) extern void object::Example( )
{ {
object front, left, right; object front, left, right;

View File

@ -1,4 +1,4 @@
extern void object::Solution( ) extern void object::Example( )
{ {
while ( true ) while ( true )
{ {

View File

@ -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);

View File

@ -1,4 +1,4 @@
extern void object::Solution( ) extern void object::Example( )
{ {
float dist, dir; float dist, dir;

View File

@ -1,4 +1,4 @@
extern void object::Solution( ) extern void object::Example( )
{ {
float dist, dir; float dist, dir;

View File

@ -1,4 +1,4 @@
extern void object::Solution( ) extern void object::Example( )
{ {
Square(15); Square(15);
Square(25); Square(25);

View File

@ -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 )

View File

@ -1,4 +1,4 @@
extern void object::Solution( ) extern void object::Example( )
{ {
object item; object item;
float dir, dist; float dir, dist;

View File

@ -1,4 +1,4 @@
extern void object::Solution( ) extern void object::Example( )
{ {
while ( true ) while ( true )
{ {

View File

@ -1,4 +1,4 @@
extern void object::Solution( ) extern void object::Example( )
{ {
object item; object item;
point dest; point dest;

View File

@ -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 )
{ {

View File

@ -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 )
{ {

View File

@ -1,4 +1,4 @@
extern void object::Solution( ) extern void object::Example( )
{ {
object item; object item;
point dest; point dest;

View File

@ -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 )
{ {

View File

@ -1,4 +1,4 @@
extern void object::Solution() extern void object::Example()
{ {
aim(0); aim(0);

View File

@ -1,4 +1,4 @@
extern void object::Solution() extern void object::Example()
{ {
object item; object item;

View File

@ -1,4 +1,4 @@
extern void object::Solution() extern void object::Example()
{ {
object item; object item;

View File

@ -1,4 +1,4 @@
extern void object::Solution() extern void object::Example()
{ {
move(20); move(20);

View File

@ -1,4 +1,4 @@
extern void object::Solution() extern void object::Example()
{ {
object item; object item;

View File

@ -1,4 +1,4 @@
extern void object::Solution( ) extern void object::Example( )
{ {
while ( true ) while ( true )
{ {

View File

@ -1,4 +1,4 @@
extern void object::Solution( ) extern void object::Example( )
{ {
while ( true ) while ( true )
{ {

View File

@ -1,4 +1,4 @@
extern void object::Solution() extern void object::Example()
{ {
object item; object item;

View File

@ -1,4 +1,4 @@
extern void object::Solution() extern void object::Example()
{ {
object item; object item;