Warning, /education/gcompris/src/activities/calcudoku/resource/1/Data.qml is written in an unsupported language. File is not indexed.

0001 /* GCompris - Data.qml
0002  *
0003  * SPDX-FileCopyrightText: 2023 Johnny Jazeix <jazeix@gmail.com>
0004  *
0005  * Authors:
0006  *   Johnny Jazeix <jazeix@gmail.com>
0007  *
0008  *   SPDX-License-Identifier: GPL-3.0-or-later
0009  */
0010 import GCompris 1.0
0011 
0012 /**
0013 Create a manual level:
0014     data: [
0015         {
0016             "random": false,
0017             "symbols": symbols,
0018             "data": [
0019                 {
0020                     "cages": [
0021                         {
0022                             indexes: [0, 4, 5],
0023                             result: 6,
0024                             operator: "*"
0025                         },
0026                         {
0027                             indexes: [8, 12],
0028                             result: 1,
0029                             operator: "-"
0030                         },
0031                         {
0032                             indexes: [1, 2, 6],
0033                             result: 16,
0034                             operator: "*"
0035                         },
0036                         {
0037                             indexes: [9, 10],
0038                             result: 1,
0039                             operator: "-"
0040                         },
0041                         {
0042                             indexes: [13],
0043                             result: 1,
0044                             operator: ""
0045                         },
0046                         {
0047                             indexes: [14, 15],
0048                             result: 2,
0049                             operator: ":"
0050                         },
0051                         {
0052                             indexes: [3, 7, 11],
0053                             result: 6,
0054                             operator: "+"
0055                         }
0056                     ],
0057                     "size": 4
0058                 }
0059             ]
0060         }
0061     ]
0062 */
0063 
0064 Data {
0065     //: \u002B is the unicode character for addition mathematical operator (+)
0066     objective: qsTr("Small grids with \u002B operator.")
0067     difficulty: 3
0068 
0069     property var symbols: [
0070         {"imgName": "1.svg", "text": '1'},
0071         {"imgName": "2.svg", "text": '2'},
0072         {"imgName": "3.svg", "text": '3'}
0073     ]
0074 
0075     data: [
0076         {
0077             "random": true,
0078             "length": 20,
0079             "symbols": symbols,
0080             "size": 3,
0081             "operators": ["+"]
0082         }
0083     ]
0084 }