Commit 35ba0df3 authored by Deepak  Kumar's avatar Deepak Kumar

mirror the given image, multiple dataset added

parent edb466ae
......@@ -401,8 +401,8 @@ ActivityBase {
MultiPointTouchArea {
x: drawAndExampleArea.x
y: drawAndExampleArea.y
width: drawAndExampleArea.width
height: drawAndExampleArea.height
width: drawingArea.width
height: drawingArea.height
onPressed: checkTouchPoint(touchPoints)
onTouchUpdated: checkTouchPoint(touchPoints)
......
/* GCompris - Data.qml
*
* Copyright (C) 2019 Shubham Mishra <shivam828787@gmail.com>
* Copyright (C) 2020 Deepak Kumar <deepakdk2431@gmail.com>
*
* Authors:
* Shubham Mishra <shivam828787@gmail.com>
* Deepak Kumar <deepakdk2431@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -26,69 +28,57 @@ Data {
difficulty: 1
data: [
{
"columns": 4,
"columns": 3,
"image":
[
1,0,0,1,
0,1,1,0,
0,0,0,0,
0,0,0,0,
0,0,0,0
1,0,0,
0,1,1,
0,0,0
]
},
{
"columns": 4,
"columns": 3,
"image":
[
1,0,0,0,
0,0,2,0,
0,0,0,0,
0,0,2,0,
1,0,0,0
1,0,1,
0,0,2,
2,0,0
]
},
{
"columns": 4,
"columns": 3,
"image":
[
1,0,0,0,
0,0,0,0,
0,0,2,1,
0,2,0,0,
0,0,0,0
1,2,0,
0,1,0,
1,0,2
]
},
{
"columns": 4,
"columns": 3,
"image":
[
1,0,0,1,
2,0,0,2,
0,0,1,0,
0,2,2,0,
1,0,0,1
1,0,2,
3,0,1,
0,3,1
]
},
{
"columns": 4,
"columns": 3,
"image":
[
0,0,0,1,
2,2,2,0,
0,0,1,0,
1,0,2,0,
0,2,0,1
1,0,1,
2,3,2,
1,0,1
]
},
{
"columns": 4,
"columns": 3,
"image":
[
0,0,0,1,
2,3,2,0,
0,0,3,0,
0,1,2,0,
0,2,0,1
1,0,3,
2,3,2,
1,0,3
]
},
]
......
/* GCompris - Data.qml
*
* Copyright (C) 2019 Shubham Mishra <shivam828787@gmail.com>
* Copyright (C) 2020 Deepak Kumar <deepakdk2431@gmail.com>
*
* Authors:
* Shubham Mishra <shivam828787@gmail.com>
* Deepak Kumar <deepakdk2431@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -22,81 +24,72 @@ import GCompris 1.0
Data {
objective: qsTr("Medium grids.")
difficulty: 2
difficulty: 4
data: [
{
"columns": 6,
"columns": 5,
"image":
[
0,1,0,0,1,0,
1,0,0,0,0,1,
0,0,0,1,0,0,
0,0,0,0,0,0,
1,0,0,0,0,1,
0,0,1,1,0,0
0,1,0,0,1,
1,0,1,0,0,
1,0,0,1,0,
0,0,1,0,0,
1,0,0,0,1,
]
},
{
"columns": 6,
"columns": 5,
"image":
[
1,0,2,0,0,0,
0,0,0,0,0,2,
0,0,1,2,0,0,
0,0,2,1,0,0,
0,0,0,0,0,0,
0,0,0,3,3,1
1,0,2,0,1,
0,2,0,0,2,
0,0,1,2,0,
0,0,2,1,0,
2,0,1,0,2
]
},
{
"columns": 6,
"columns": 5,
"image":
[
1,0,0,0,0,3,
0,2,0,0,0,3,
0,0,0,3,0,0,
0,0,1,0,0,0,
0,0,0,2,0,0,
0,1,0,0,0,1
1,0,2,0,3,
0,2,0,0,1,
1,0,0,3,2,
3,0,1,0,0,
0,1,0,2,3
]
},
{
"columns": 7,
"columns": 5,
"image":
[
0,1,2,0,2,1,0,
1,0,0,0,0,0,1,
2,0,0,0,0,0,2,
0,0,0,0,0,0,0,
2,0,0,0,0,0,2,
1,0,0,0,0,0,1,
0,1,2,0,2,1,0
0,1,2,0,3,
1,0,3,0,2,
2,0,2,0,1,
1,0,2,0,3,
2,0,3,0,1
]
},
{
"columns": 7,
"columns": 5,
"image":
[
0,0,1,0,1,0,0,
0,2,0,2,0,2,0,
3,0,0,0,0,0,3,
0,2,0,0,0,2,0,
0,0,0,3,0,0,0,
0,2,0,0,0,2,0,
1,0,1,0,1,0,1
1,0,2,0,4,
3,2,0,2,0,
3,0,1,2,4,
0,2,0,0,3,
1,0,0,3,0
]
},
{
"columns": 7,
"columns": 5,
"image":
[
0,0,1,0,1,0,0,
3,1,0,0,0,0,2,
3,0,0,0,0,0,3,
0,2,0,1,0,2,0,
0,0,0,0,1,0,0,
0,2,0,0,0,2,0,
0,3,0,0,3,0,1
2,0,1,0,1,
3,1,0,4,0,
3,0,2,0,3,
0,2,0,1,0,
1,0,4,0,1
]
},
]
......
/* GCompris - Data.qml
*
* Copyright (C) 2019 Shubham Mishra <shivam828787@gmail.com>
* Copyright (C) 2020 Deepak Kumar <deepakdk2431@gmail.com>
*
* Authors:
* Shubham Mishra <shivam828787@gmail.com>
* Deepak Kumar <deepakdk2431@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -22,17 +24,21 @@ import GCompris 1.0
Data {
objective: qsTr("Large grids.")
difficulty: 3
difficulty: 5
data: [
{ // A
"columns": 6,
{ // A
"columns": 7,
"image":
[
0,2,2,0,1,2,
2,0,0,2,3,2,
2,1,3,2,0,1,
2,0,0,2,4,0,
2,0,0,2,0,4
0,0,2,2,1,0,1,
2,0,0,2,3,0,1,
0,1,1,0,2,0,2,
2,0,0,2,3,4,1,
2,0,2,0,4,3,1,
1,1,0,2,0,3,3,
2,0,2,2,4,3,1
]
},
{ // B
......@@ -43,145 +49,64 @@ Data {
2,0,0,2,3,0,1,
2,1,1,0,1,0,2,
2,0,0,2,3,4,1,
2,2,2,2,4,3,1,
2,2,2,2,4,3,1,
2,2,2,2,4,3,1
]
},
{ // C
"columns": 6,
"image":
[
2,3,3,3,4,5,
2,0,0,0,0,6,
2,0,2,0,3,2,
2,0,1,0,2,1,
2,3,3,3,2,5
]
},
{ // D
"columns": 6,
"image":
[
1,1,1,0,1,0,
1,0,0,2,3,4,
1,0,4,2,4,3,
1,0,0,2,5,0,
1,1,1,0,3,1
]
},
{ // E
"columns": 6,
"image":
[
1,1,1,1,1,1,
1,0,2,0,1,0,
1,2,2,0,3,3,
1,0,3,0,4,0,
1,1,1,1,0,0
]
},
{ // F
"columns": 6,
"image":
[
1,2,1,3,1,4,
1,0,2,0,3,0,
4,2,2,0,4,4,
1,0,3,0,3,0,
1,2,0,0,2,1,
2,5,0,0,1,2
]
},
{ // G
"columns": 7,
"image":
[
1,2,1,3,1,4,1,
1,0,2,0,3,0,5,
1,0,2,2,0,3,3,
1,0,0,2,2,0,3,
1,6,1,0,4,2,1
]
},
{ // H
"columns": 6,
"image":
[
4,0,2,1,3,5,
1,2,0,3,4,1,
1,2,3,1,2,1,
1,0,5,5,0,1,
1,0,6,1,6,0
]
},
{ // I
"columns": 7,
"image":
[
0,2,2,2,2,0,5,
2,0,1,0,3,1,4,
4,0,1,0,5,6,0,
4,0,1,2,3,4,6,
0,2,2,2,0,0,5
]
},
{ // J
"columns": 7,
"image":
[
0,3,2,4,0,1,1,
0,3,2,0,1,4,2,
0,0,2,0,4,5,1,
1,0,2,0,0,0,1,
1,2,1,0,4,1,3
]
},
{ // K
"columns": 7,
"image":
[
1,4,0,1,2,0,0,
1,0,5,0,0,3,0,
1,3,0,0,0,0,4,
1,0,5,0,0,3,0,
1,4,0,1,2,0,0
1,3,0,2,1,2,4,
2,0,0,2,3,0,1,
2,1,3,0,1,0,2,
3,0,0,2,3,4,1,
4,3,3,2,4,3,2,
2,2,0,2,2,3,1,
1,2,0,2,4,3,4
]
},
{ // L
{ // D
"columns": 7,
"image":
[
1,0,0,0,3,0,0,
1,0,0,3,0,3,0,
1,0,3,0,4,0,3,
1,3,0,0,0,3,4,
2,2,2,2,2,2,2
1,2,3,2,4,1,2,
2,0,0,2,3,0,1,
2,1,1,0,1,0,2,
4,0,0,2,3,4,1,
2,1,3,2,4,3,1,
1,3,2,1,2,2,0,
4,2,3,2,4,3,1
]
},
{ // M
{ // E
"columns": 7,
"image":
[
1,0,0,0,1,4,0,
1,2,0,2,1,0,5,
1,0,2,0,1,4,0,
1,0,3,0,1,0,5,
1,3,0,3,1,4,0,
0,1,0,5,0,1,0
0,1,2,4,1,2,0,
2,0,0,2,3,0,1,
3,0,1,0,1,0,3,
2,0,0,2,3,4,1,
0,1,2,2,4,3,2,
2,3,2,1,4,3,1,
2,3,2,2,4,3,1
]
},
{ // N
{ // F
"columns": 7,
"image":
[
1,0,5,0,1,0,0,
1,2,0,4,0,5,0,
1,0,2,0,1,0,1,
1,4,0,2,0,4,0,
1,0,5,0,1,0,1,
0,0,1,0,5,0,1
2,2,0,2,3,1,4,
1,0,0,2,3,0,1,
2,1,1,0,1,0,2,
3,0,0,2,3,4,3,
2,2,2,2,4,3,1,
4,2,1,0,0,2,1,
0,2,3,2,4,3,0
]
},
{ // O
{ // G
"columns": 7,
"image":
[
......@@ -194,148 +119,32 @@ Data {
0,3,2,0,2,3,0
]
},
{ // P
"columns": 8,
"image":
[
1,3,3,1,1,2,2,1,
2,0,5,1,5,0,0,2,
1,2,2,1,4,5,5,4,
1,0,4,0,5,0,4,2,
1,5,0,4,4,0,5,1,
0,1,1,0,0,1,1,0,
3,4,0,2,2,0,4,3
]
},
{ // Q
"columns": 8,
"image":
[
0,3,3,0,0,2,2,0,
4,0,0,4,4,0,0,4,
1,0,0,4,4,0,0,4,
2,4,0,0,3,0,4,2,
1,5,0,3,1,0,5,1,
0,0,0,4,4,0,0,0,
4,3,5,1,1,5,4,3
]
},
{ // R
"columns": 8,
"image":
[
5,0,0,0,5,0,0,0,
0,4,0,4,0,4,0,4,
0,0,3,0,0,0,3,0,
0,0,1,0,0,0,1,0,
0,1,0,1,0,1,0,1,
1,0,0,0,1,0,0,0,
2,0,2,0,2,0,2,0
]
},
{ // S
"columns": 8,
"image":
[
1,0,2,3,0,2,0,1,
0,2,0,4,4,0,2,0,
0,0,3,0,0,3,0,0,
0,0,0,4,4,0,0,0,
0,0,3,0,0,3,0,0,
0,2,0,4,4,0,2,0,
1,0,2,0,3,2,0,1
]
},
{ // T
"columns": 8,
"image":
[
4,0,4,0,4,0,4,0,
0,5,0,5,0,5,0,5,
4,0,4,0,4,0,4,0,
0,5,0,5,0,5,0,5,
4,0,4,0,4,0,4,0,
0,5,0,5,0,5,0,5,
4,0,4,0,4,0,4,0
]
},
{ // U
"columns": 8,
"image":
[
4,0,1,0,4,0,1,0,
0,5,0,3,3,0,0,5,
4,0,2,0,0,0,3,0,
0,5,0,3,0,3,0,5,
4,0,3,4,4,0,2,0,
0,5,0,1,3,2,0,5,
4,0,1,2,4,0,1,0
]
},
{ // V
"columns": 8,
"image":
[
0,3,3,0,0,3,3,0,
5,0,0,5,5,0,0,5,
4,0,0,4,4,0,0,4,
0,5,5,0,0,5,5,0,
3,0,4,0,3,0,4,0,
0,2,0,2,0,2,0,2,
4,0,1,0,4,0,1,0
]
},
{ // W
"columns": 8,
"image":
[
1,0,2,0,5,2,0,3,
0,2,0,1,0,4,0,0,
0,0,3,0,1,0,3,0,
0,5,0,4,0,5,0,1,
0,1,1,0,5,0,4,0,
0,1,0,2,0,4,0,3,
0,2,0,1,0,3,0,4
]
},
{ // X
"columns": 8,
"image":
[
0,1,3,0,2,1,0,3,
0,4,1,0,0,4,1,0,
5,3,0,0,1,0,3,5,
4,1,0,4,1,0,4,1,
0,1,1,0,5,0,4,0,
0,1,0,2,0,4,0,3,
0,2,0,1,1,0,0,4
]
},
{ // Y
"columns": 8,
{ // H
"columns": 7,
"image":
[
1,0,1,0,1,0,1,0,
0,2,0,2,0,2,0,2,