\b;Objectif
Write a small program to kill three spiders.

\t;Marche à suivre
1) In order to program the bot, select it.
2) The numbers 1 to 4 corresponding to the programs contained in the bot appear on the lower left-hand corner of your screen. Select the first line.
3) Click the button with the braces \button 22;, and you will arrive in an editor where you can write the program.
4) While you are writing the program, the key \key;\key help;\norm; will display the text you are reading right now. When you have finished writing the program, click the "OK" button.
5) In order to execute the program, click the arrow button \button 21;.

\t;Program
You must tell the bot exactly step by step what it must do in order to kill the three spiders. The bot understands only precise instructions, which it will execute one after another.

When you click the braces button \button 22; in order to write the program, a part of the program will already be there:
\c;
\s;extern void object::Spider1( )
\s;{
\s;	
\s;	\n;write your program here ...\c;
\s;	
\s;}
\n;
Everything that is already written when you arrive in the editor must not be altered. Just introduce the necessary instructions at the cursor.

Vous aurez besoin des instructions suivantes:
\c;
\s;aim(0);\n;
\n;Met le canon bien droit.
\c;
\s;turn();\n;
\n;Tourne le robot d'un certain angle, donné en degrés entre les parenthèses. Par exemple \c;turn(90);\n; tourne le robot à gauche de 90 degrés, c'est-à-dire d'un quart de tour à gauche. \c;turn(-90);\n; tourne le robot à droite de 90 degrés (quart de tour à droite). Les valeurs négatives font tourner à droite. \c;turn(180);\n; fait faire un demi-tour.
\c;
\s;fire(1);
\n;Tire avec le canon. La valeur entre parenthèses indique la durée de la rafale. En général, on tire toujours des rafales d'une seconde.

Voyons le début du programme:
o  on met le canon bien droit avec \c;aim(0);\n;
o  on tire sur la cible qui est droit devant avec \c;fire(1);\n;
o  on tourne à gauche de 90 degrés avec \c;turn(90)\n;
o  on tire avec \c;fire(1);\n;
o  etc.

Voici le programme correspondant:
\c;
\s;extern void object::Go( )
\s;{
\s;	aim(0);
\s;	fire(1);
\s;	turn(90);
\s;	fire(1);
\s;}
\n;
A vous de faire la suite!

If you have got a problem, you can always look at the solution: select the \c;Solution\n; program on the lower left-hand corner of the screen, and click the braces button \button 22;. You can even execute the solution program with the arrow button \button 21;.

\t;Remarks
Be careful to write the instructions precisely, respecting lower and upper case letters.

Always write one instruction per line, finishing each line with a semicolon.

In case your program does not do exactly what you wanted, you can put the bot back at the starting point with the \button 59; button. You can also start over again from the beginning (hit the "Esc" key, then click "Restart"). The program you have written will not be lost.

\key;\key help;\norm; permet de revoir les instructions générales en tout temps. De même, \key;\key prog;\norm; accède aux explications du langage de programmation CBOT.
