| 1 |
/* GCompris - Data.qml |
| 2 |
* |
| 3 |
* SPDX-FileCopyrightText: 2020 Deepak Kumar <[email protected]> |
| 4 |
* |
| 5 |
* Authors: |
| 6 |
* Deepak Kumar <[email protected]> |
| 7 |
* |
| 8 |
* SPDX-License-Identifier: GPL-3.0-or-later |
| 9 |
*/ |
| 10 |
import core 1.0 |
| 11 |
|
| 12 |
Data { |
| 13 |
objective: qsTr("Balance up to 10 pounds.") |
| 14 |
difficulty: 3 |
| 15 |
|
| 16 |
readonly property string lb_1: qsTr("%1 lb").arg(1) |
| 17 |
readonly property string lb_2: qsTr("%1 lb").arg(2) |
| 18 |
readonly property string lb_3: qsTr("%1 lb").arg(3) |
| 19 |
readonly property string lb_5: qsTr("%1 lb").arg(5) |
| 20 |
function lb(value: int) : string { |
| 21 |
/* lb == pound */ |
| 22 |
return qsTr("%1 lb").arg(value) |
| 23 |
} |
| 24 |
|
| 25 |
data: [ |
| 26 |
{ |
| 27 |
"masses": [[1, lb_1], [1, lb_1], [2, lb_2], [1, lb_1], [2, lb_2], [1, lb_1], [2, lb_2]], |
| 28 |
"targets": [[1, lb_1], [2, lb_2], [3, lb_3]], |
| 29 |
"rightDrop": false, |
| 30 |
"message": qsTr('The "lb" symbol at the end of a number means pound.' + " " + |
| 31 |
'The pound is a unit of mass, a property which corresponds to the ' + |
| 32 |
'common perception of how "heavy" an object is. This unit is used in the USA.') |
| 33 |
}, |
| 34 |
{ |
| 35 |
"masses": [[1, lb_1], [2, lb_2], [2, lb_2], [1, lb_1], [2, lb_2], [1, lb_1], [2, lb_2]], |
| 36 |
"targets": [[2, lb_2], [4, lb(4)], [5, lb_5],[1, lb_1]], |
| 37 |
"rightDrop": false, |
| 38 |
"message": qsTr("Drop weights on the left side to balance the scales.") |
| 39 |
}, |
| 40 |
{ |
| 41 |
"masses": [[1, lb_1], [2, lb_2], [2, lb_2], [1, lb_1], [2, lb_2], [1, lb_1], [2, lb_2]], |
| 42 |
"targets": [[3, lb_3], [4, lb(4)], [5, lb_5],[7, lb(7)],[2, lb_2]], |
| 43 |
"rightDrop": false, |
| 44 |
"message": qsTr("Drop weights on the left side to balance the scales.") |
| 45 |
}, |
| 46 |
{ |
| 47 |
"masses": [[1, lb_1], [2, lb_2], [3, lb_3], [5, lb_5], [2, lb_2], [4, lb(4)], [2, lb_2]], |
| 48 |
"targets": [[3, lb_3], [4, lb(4)], [5, lb_5],[7, lb(7)],[8, lb(8)], [10, lb(10)],[9, lb(9)]], |
| 49 |
"rightDrop": false, |
| 50 |
"message": qsTr("Drop weights on the left side to balance the scales.") |
| 51 |
}, |
| 52 |
{ |
| 53 |
"masses": [[5, lb_5], [7, lb(7)], [9, lb(9)], [6, lb(6)], [5, lb_5], [4, lb(4)], [7, lb(7)]], |
| 54 |
"targets": [[2, lb_2], [3, lb_3],[1, lb_1]], |
| 55 |
"rightDrop": true, |
| 56 |
"message": qsTr("Take care, you can drop weights on both sides of the scales."), |
| 57 |
|
| 58 |
}, |
| 59 |
{ |
| 60 |
"masses": [[5, lb_5], [7, lb(7)], [9, lb(9)], [6, lb(6)], [5, lb_5], [6, lb(6)], [7, lb(7)]], |
| 61 |
"targets": [[4, lb(4)], [3, lb_3],[5, lb_5]], |
| 62 |
"rightDrop": true, |
| 63 |
"message": qsTr("Take care, you can drop weights on both sides of the scales."), |
| 64 |
|
| 65 |
}, |
| 66 |
{ |
| 67 |
"masses": [[8, lb(8)], [11, lb(11)], [9, lb(9)], [10, lb(10)], [12, lb(12)], [4, lb(4)], [9, lb(9)]], |
| 68 |
"targets": [[2, lb_2], [6, lb(6)],[7, lb(7)],[5, lb_5]], |
| 69 |
"rightDrop": true, |
| 70 |
"message": qsTr("Take care, you can drop weights on both sides of the scales."), |
| 71 |
|
| 72 |
}, |
| 73 |
{ |
| 74 |
"masses": [[6, lb(6)], [9, lb(9)], [6, lb(6)], [5, lb_5], [9, lb(9)], [7, lb(7)], [11, lb(11)]], |
| 75 |
"targets": [[3, lb_3], [8, lb(8)], [7, lb(7)],[10, lb(10)]], |
| 76 |
"message": qsTr("Take care, you can drop weights on both sides of the scales."), |
| 77 |
"rightDrop": true |
| 78 |
}, |
| 79 |
{ |
| 80 |
"masses": [[1, lb_1], [1, lb_1], [2, lb_2], [1, lb_1], [2, lb_2], [1, lb_1], [2, lb_2]], |
| 81 |
"targets": [[1, lb_1], [2, lb_2], [3, lb_3]], |
| 82 |
"rightDrop": false, |
| 83 |
"message": qsTr("Now you have to guess the weight of the gift."), |
| 84 |
"question": qsTr("Enter the weight of the gift in pound: %1") |
| 85 |
}, |
| 86 |
{ |
| 87 |
"masses": [[1, lb_1], [2, lb_2], [2, lb_2], [1, lb_1], [2, lb_2], [1, lb_1], [2, lb_2]], |
| 88 |
"targets": [[3, lb_3], [5, lb_5], [7, lb(7)], [2, lb_2]], |
| 89 |
"rightDrop": false, |
| 90 |
"message": qsTr("Now you have to guess the weight of the gift."), |
| 91 |
"question": qsTr("Enter the weight of the gift in pound: %1") |
| 92 |
}, |
| 93 |
{ |
| 94 |
"masses": [[1, lb_1], [1, lb_1], [2, lb_2], [1, lb_1], [2, lb_2], [1, lb_1], [2, lb_2]], |
| 95 |
"targets": [[4, lb(4)], [1, lb_1], [5, lb_5]], |
| 96 |
"rightDrop": false, |
| 97 |
"message": qsTr("Now you have to guess the weight of the gift."), |
| 98 |
"question": qsTr("Enter the weight of the gift in pound: %1") |
| 99 |
}, |
| 100 |
{ |
| 101 |
"masses": [[1, lb_1], [8, lb(8)], [2, lb_2], [2, lb_2], [7, lb(7)], [9, lb(9)], [6, lb(6)]], |
| 102 |
"targets": [[4, lb(4)], [7, lb(7)], [10, lb(10)],[5, lb_5], [6, lb(6)]], |
| 103 |
"rightDrop": false, |
| 104 |
"message": qsTr("Now you have to guess the weight of the gift."), |
| 105 |
"question": qsTr("Enter the weight of the gift in pound: %1") |
| 106 |
} |
| 107 |
] |
| 108 |
} |