Changeset View
Changeset View
Standalone View
Standalone View
src/activities/scalesboard/resource/2/Data.qml
- This file was added.
1 | /* GCompris - Data.qml | ||||
---|---|---|---|---|---|
2 | * | ||||
3 | * Copyright (C) 2020 Deepak Kumar <deepakdk2431@gmail.com> | ||||
4 | * | ||||
5 | * Authors: | ||||
6 | * Deepak Kumar <deepakdk2431@gmail.com> | ||||
7 | * | ||||
8 | * This program is free software; you can redistribute it and/or modify | ||||
9 | * it under the terms of the GNU General Public License as published by | ||||
10 | * the Free Software Foundation; either version 3 of the License, or | ||||
11 | * (at your option) any later version. | ||||
12 | * | ||||
13 | * This program is distributed in the hope that it will be useful, | ||||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
16 | * GNU General Public License for more details. | ||||
17 | * | ||||
18 | * You should have received a copy of the GNU General Public License | ||||
19 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||||
20 | */ | ||||
21 | import "../../../../core" | ||||
22 | | ||||
23 | Dataset { | ||||
24 | objective: qsTr("Balance the scales until 10.") | ||||
25 | difficulty: 2 | ||||
26 | data: [ | ||||
27 | { | ||||
28 | "masses": [[1, "1"], [1, "1"], [2, "2"], [1, "1"], [2, "2"], [1, "1"], [2, "2"]], | ||||
29 | "targets": [[3, "3"], [4, "4"], [5, "5"]], | ||||
30 | "rightDrop": false, | ||||
31 | "message": qsTr("Drop weights on the left side to balance the scale.") | ||||
32 | }, | ||||
33 | { | ||||
34 | "masses": [[1, "1"], [2, "2"], [2, "2"], [1, "1"], [2, "2"], [1, "1"], [2, "2"]], | ||||
35 | "targets": [[3, "3"], [4, "4"], [5, "5"],[7,"7"],[8,"8"]], | ||||
36 | "rightDrop": false, | ||||
37 | "message": qsTr("Drop weights on the left side to balance the scale.") | ||||
38 | }, | ||||
39 | { | ||||
40 | "masses": [[1, "1"], [1, "1"], [2, "2"], [1, "1"], [2, "2"], [1, "1"], [2, "2"]], | ||||
41 | "targets": [[3, "3"], [4, "4"], [5, "5"],[7,"7"],[8,"8"],[10,"10"]], | ||||
42 | "rightDrop": false, | ||||
43 | "message": qsTr("Drop weights on the left side to balance the scale.") | ||||
44 | }, | ||||
45 | { | ||||
46 | "masses": [[6, "6"], [7, "7"], [3, "3"], [7, "7"], [6, "6"], [7, "7"], [9, "9"]], | ||||
47 | "targets": [[4, "4"], [8,"8"], [5, "5"]], | ||||
48 | "rightDrop": true, | ||||
49 | "message": qsTr("Take care, you can drop weights on both sides of the scale.") | ||||
50 | }, | ||||
51 | { | ||||
52 | "masses": [[6, "6"], [9, "9"], [6, "6"], [5, "5"], [9, "9"], [7, "7"], [11, "11"]], | ||||
53 | "targets": [[3, "3"], [8, "8"], [7,"7"],[10,"10"]], | ||||
54 | "message": qsTr("Take care, you can drop weights on both sides of the scale."), | ||||
55 | "rightDrop": true | ||||
56 | }, | ||||
57 | { | ||||
58 | "masses": [[1, "1"], [3, "3"], [2, "2"], [5, "5"], [7, "7"], [1, "1"], [2, "2"]], | ||||
59 | "targets": [[4, "4"], [7, "7"], [10, "10"]], | ||||
60 | "rightDrop": false, | ||||
61 | "message": qsTr("Now you have to guess the weight of the gift."), | ||||
62 | "question": qsTr("Enter the weight of the gift: %1") | ||||
63 | }, | ||||
64 | { | ||||
65 | "masses": [[1, "1"], [8, "8"], [2, "2"], [2, "2"], [7, "7"], [9, "9"], [6, "6"]], | ||||
66 | "targets": [[4, "4"], [7, "7"], [10, "10"],[5,"5"]], | ||||
67 | "rightDrop": false, | ||||
68 | "message": qsTr("Now you have to guess the weight of the gift."), | ||||
69 | "question": qsTr("Enter the weight of the gift: %1") | ||||
70 | } | ||||
71 | ] | ||||
72 | } | ||||
73 | | ||||
74 | | ||||
75 | | ||||
76 | |