| 1 |
/* GCompris - Data.qml |
| 2 |
* |
| 3 |
* SPDX-FileCopyrightText: 2023 Johnny Jazeix <[email protected]> |
| 4 |
* |
| 5 |
* Authors: |
| 6 |
* Johnny Jazeix <[email protected]> |
| 7 |
* |
| 8 |
* SPDX-License-Identifier: GPL-3.0-or-later |
| 9 |
*/ |
| 10 |
import core 1.0 |
| 11 |
|
| 12 |
/** |
| 13 |
Create a manual level: |
| 14 |
data: [ |
| 15 |
{ |
| 16 |
"random": false, |
| 17 |
"symbols": symbols, |
| 18 |
"data": [ |
| 19 |
{ |
| 20 |
"cages": [ |
| 21 |
{ |
| 22 |
indexes: [0, 4, 5], |
| 23 |
result: 6, |
| 24 |
operator: "*" |
| 25 |
}, |
| 26 |
{ |
| 27 |
indexes: [8, 12], |
| 28 |
result: 1, |
| 29 |
operator: "-" |
| 30 |
}, |
| 31 |
{ |
| 32 |
indexes: [1, 2, 6], |
| 33 |
result: 16, |
| 34 |
operator: "*" |
| 35 |
}, |
| 36 |
{ |
| 37 |
indexes: [9, 10], |
| 38 |
result: 1, |
| 39 |
operator: "-" |
| 40 |
}, |
| 41 |
{ |
| 42 |
indexes: [13], |
| 43 |
result: 1, |
| 44 |
operator: "" |
| 45 |
}, |
| 46 |
{ |
| 47 |
indexes: [14, 15], |
| 48 |
result: 2, |
| 49 |
operator: ":" |
| 50 |
}, |
| 51 |
{ |
| 52 |
indexes: [3, 7, 11], |
| 53 |
result: 6, |
| 54 |
operator: "+" |
| 55 |
} |
| 56 |
], |
| 57 |
"size": 4 |
| 58 |
} |
| 59 |
] |
| 60 |
} |
| 61 |
] |
| 62 |
*/ |
| 63 |
|
| 64 |
Data { |
| 65 |
//: \u002B is the unicode character for addition mathematical operator (+) |
| 66 |
objective: qsTr("Small grids with \u002B operator.") |
| 67 |
difficulty: 3 |
| 68 |
|
| 69 |
property var symbols: [ |
| 70 |
{"imgName": "1.svg", "text": '1'}, |
| 71 |
{"imgName": "2.svg", "text": '2'}, |
| 72 |
{"imgName": "3.svg", "text": '3'} |
| 73 |
] |
| 74 |
|
| 75 |
data: [ |
| 76 |
{ |
| 77 |
"random": true, |
| 78 |
"length": 20, |
| 79 |
"symbols": symbols, |
| 80 |
"size": 3, |
| 81 |
"operators": ["+"] |
| 82 |
} |
| 83 |
] |
| 84 |
} |