Debian Codegraph @

src/activities/magic-hat-minus/resource/1/Data.qml

raw
1 /* GCompris - Data.qml
2 *
3 * SPDX-FileCopyrightText: 2021 Mariam Fahmy <[email protected]>
4 * SPDX-FileCopyrightText: 2026 Timothée Giet <[email protected]>
5 *
6 * Authors:
7 * Mariam Fahmy <[email protected]>
8 * Timothée Giet <[email protected]>
9 *
10 * SPDX-License-Identifier: GPL-3.0-or-later
11 */
12 import core 1.0
13
14 /* Dataset details:
15 *
16 * data: [
17 *
18 * { // Example without coefficients ("useCoefficients": false, or not defined).
19 *
20 * // Maximum number of stars for each row of the result.
21 * // For subtractions, it must be between 1 and 10.
22 * "maxResultPerRow": 3,
23 * // If true, each row uses a different set of stars. (initialized to false by default if not defined)
24 * "useDifferentStars": false,
25 * // maximum number of stars for each row of first operand. First number should be at least 2 for subtractions, others between 0 and 10.
26 * "maxStars": [3, 0, 0],
27 * // minimum number of stars for each row of first operand. First number should be at least 2 for subtractions, others between 0 and 10.
28 * // All numbers should not be larger than the corresponding ones in maxStars.
29 * "minStars": [1, 0, 0]
30 * },
31 * { // Example with coefficients ("useCoefficients": true)
32 * // (maxResultPerRow, maxStars and minStars are auto-generated, useDifferentStars is not used).
33 *
34 * "useCoefficients:" false,
35 * // "multiplier" can use the following values: 1, 10, 100.
36 * // Coefficients are generated for each row depending on given values (see rowCoefficients).
37 * // The maximum result will then be (multiplier * 100).
38 * "multiplier": 1,
39 * // Base coefficient for each row. First number should be at least 1, others between 0 and 10.
40 * // Each row's coefficient will be equal to the given number * multiplier.
41 * // If a row's base coefficient is 0, it will not have any stars.
42 * // IMPORTANT: The 3 values added together must not be greater than 10!
43 * "rowCoefficients": [4, 4, 2],
44 * }
45 *
46 * ]
47 */
48
49 Data {
50 objective: qsTr("Calculate remaining stars up to 3.")
51 difficulty: 1
52 data: [
53 {
54 "maxResultPerRow": 3,
55 "minStars": [2, 0, 0],
56 "maxStars": [4, 0, 0]
57 },
58 {
59 "maxResultPerRow": 3,
60 "minStars" : [2, 0, 0],
61 "maxStars" : [3, 0, 0]
62 }
63 ]
64 }