~ubuntu-branches/ubuntu/karmic/laby/karmic

« back to all changes in this revision

Viewing changes to data/levels/2c.laby

  • Committer: Bazaar Package Importer
  • Author(s): Mehdi Dogguy
  • Date: 2009-06-01 21:35:00 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090601213500-c1f7o333v0ew2c4f
Tags: 0.5.0-1
* New Upstream Version
* Remove menhir from build-dependencies: not used.
* alsa-utils is now a Recommends: used only for sound effects.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
map:
 
2
o o o o o o o o o o o o o o
 
3
o . . . . . . . . . . . . x
 
4
o . o o o o o o o o o o o o
 
5
o . o . . . . . . . . . . .
 
6
o . o o o o o o o o o o o o
 
7
o . . . . . . . . . . . . o
 
8
o o o o o o o o o o o o . o
 
9
. . . . . . . . . . . o . o
 
10
o o o o o o o o o o o o . o
 
11
o → . . . . . . . . . . . o
 
12
o o o o o o o o o o o o o o
 
13
 
 
14
help:
 
15
function
 
16
 
 
17
title:
 
18
en_US.UTF-8     Zig Zag
 
19
fr_FR.UTF-8     Zig Zag
 
20
 
 
21
comment:
 
22
en_US.UTF-8     Five long runs! To avoid writing five times the same loop, we shall use a shortcut! Let's write a function which makes the robot race strait forward as far as possible. Then we'll be able to call it several times.
 
23
fr_FR.UTF-8     Cinq longues distances à parcourir ! Pour éviter de recopier cinq fois la même boucle, on peut utiliser un raccourci ! On va écrire une fonction qui fait avancer le robot le plus loin possible en ligne droite. Ensuite on pourra facilement l'appeler plusieurs fois.