Sync teacher change
This commit is contained in:
mhart 2020-10-14 22:09:21 +02:00
commit cff39f9dad
3 changed files with 28 additions and 5 deletions

23
LICENSE-MIT Normal file
View File

@ -0,0 +1,23 @@
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without
limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice
shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

View File

@ -119,14 +119,14 @@ depuis un fichier d'instruction, et afficher a la fin leurs positions finales.
Dans cette version on va écrire du code pour afficher la positions des robots et Dans cette version on va écrire du code pour afficher la positions des robots et
dessiner la grille. dessiner la grille.
Vous devrez pouvoir dessiner quelque chose comme cela en partant de la grille donnée en exemple plus haut Vous devrez pouvoir dessiner quelque chose comme cela en partant de la grille
dans votre terminal: donnée en exemple plus haut dans votre terminal:
```txt ```txt
Terrain { x_max = 5; y_max = 5 } Terrain { x_max = 5; y_max = 5 }
Robots [ Robots [
{ id = 0, x = 1; y = 1; orientation: North }, { id = 0, x = 1; y = 1; orientation: North, instructions: [F,L,L,F,R,F], },
{ id = 1; x = 3; y = 2; orientation: South }, { id = 1; x = 3; y = 2; orientation: South, instructions: [F,F,L,F,R,R,F], },
] ]
Etat initial Etat initial
============================ ============================
@ -143,7 +143,7 @@ Etat final
4 . . . . . . 4 . . . . . .
3 . . . . . . 3 . . . . . .
2 . . . . . . 2 . . . . . .
1 . ➡ . . . . 1 ⬅ . . . . .
0 . . . ⬅ . . 0 . . . ⬅ . .
0 1 2 3 4 5 0 1 2 3 4 5
``` ```