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

0001 /* GCompris - Data.qml
0002  *
0003  * SPDX-FileCopyrightText: 2021 Harsh Kumar <hadron43@yahoo.com>
0004  *
0005  * Authors:
0006  *   Harsh Kumar <hadron43@yahoo.com>
0007  *
0008  *   SPDX-License-Identifier: GPL-3.0-or-later
0009  */
0010 import GCompris 1.0
0011 
0012 Data {
0013     objective: qsTr("%1x%2 grids.").arg(10).arg(10)
0014     difficulty: 4
0015     data: [
0016         /*
0017             Symbols used:
0018             * -> path
0019             . -> empty
0020             S -> starting point
0021             E -> ending point
0022             I -> invisible tile
0023             R -> rock
0024             T -> tree
0025             B -> bush
0026             G -> grass
0027             W -> water
0028 
0029             Note: Make sure you have a unique path.
0030         */
0031         {
0032             path: [
0033                 ['.', '*', '*', '*', '*', '.', '*', '*', '*', '.'],
0034                 ['R', '*', 'B', '.', '*', 'R', '*', 'B', '*', '.'],
0035                 ['*', '*', '.', '*', '*', '.', '*', 'G', '*', 'W'],
0036                 ['*', 'W', '.', '*', '.', '.', '*', '.', '*', 'S'],
0037                 ['*', 'W', '.', '*', '*', '.', '*', '*', '.', '.'],
0038                 ['*', '*', '.', 'B', '*', 'G', '.', '*', '.', '.'],
0039                 ['.', '*', 'G', '.', '*', '.', '.', '*', '.', '.'],
0040                 ['B', '*', '.', 'R', '*', '*', '*', '*', '.', '.'],
0041                 ['.', '*', '.', '.', '.', '.', '.', '.', '.', 'R'],
0042                 ['.', 'E', '.', '.', '.', 'W', '.', 'G', '.', '.'],
0043             ]
0044         },
0045         {
0046             path: [
0047                 ['G', 'E', '.', '*', '*', '*', '*', '*', 'W', 'W'],
0048                 ['.', '*', '.', '*', 'R', 'B', '.', '*', 'W', 'W'],
0049                 ['G', '*', 'R', '*', '.', '.', '.', '*', 'T', 'T'],
0050                 ['.', '*', '*', '*', '.', '*', '*', '*', 'T', 'T'],
0051                 ['.', 'G', '.', 'B', '.', '*', 'B', '.', 'T', 'T'],
0052                 ['.', '.', '.', '.', '.', '*', '*', '.', '.', '.'],
0053                 ['*', '*', '*', '*', '*', '.', '*', 'B', '.', '.'],
0054                 ['*', 'R', '.', '.', '*', '.', '*', '.', 'R', '.'],
0055                 ['*', '*', '*', 'G', '*', '.', '*', '.', '.', '.'],
0056                 ['.', '.', 'S', '.', '*', '*', '*', '.', 'B', '.'],
0057             ]
0058         }
0059     ]
0060 }