Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/boards/searace.xml.in
blob: 47860993c280efd2434b031edc030a3b5d348016 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="UTF-8"?>
<GCompris>
  <Board
	 name="searace"
	 type="python:searace"
	 section="/experience"
	 difficulty="6"
	 icon="boardicons/searace.svg"
	 author="Bruno Coudoin (bruno.coudoin@free.fr)"
	 boarddir="searace">
	 <_title>Sea race (2 Players)</_title>
	 <_description>Direct your boat accurately to win the race.</_description>
	<_prerequisite></_prerequisite>
	<_goal>In this activity, you will learn how to enter commands into a computer. Even if the language is extremely basic, you learn here how to think ahead and construct a program. This activity can be used to introduce the programming concept to children.</_goal>
	<_manual xml:space="preserve">In the text entry, enter one command per line, to control your boat.
Commands supported are displayed between the two entry areas. The 'left' and 'right' commands must be followed by an angle in degrees. The angle value is also called a 'parameter' to the left or right command. By default 45 degrees is used. The 'forward' command accepts a distance parameter. By default 1 is used.
For example:
- left 90: Make a perpendicular left turn
- forward 10: Go forward for 10 units (as displayed on the ruler).
The goal is to reach the right of the screen (the red line). When done, you can try to improve your program and start a new race with the same weather conditions by using the retry button. You can click and drag your mouse anywhere on the map to get a measurement in distance and angle. Going to the next level will give you more complex weather conditions.</_manual>
  </Board>
</GCompris>