Commit 56342bc7 authored by Deepak  Kumar's avatar Deepak Kumar Committed by Johnny Jazeix

memory-math-add, memory-math-add-tux, add multiple dataset

parent 168a4cc9
......@@ -40,4 +40,5 @@ In this game, these cards are hiding the two parts of an adding-up sum (also cal
credit: ""
section: "math memory arithmetic"
createdInVersion: 0
levels: "1,2,3,4,5,6,7,8,9,10"
}
......@@ -22,10 +22,8 @@
import QtQuick 2.6
import "../memory"
import "../memory-math-add/memory-adddataset.js" as Dataset
MemoryCommon {
dataset: Dataset.get()
backgroundImg: "qrc:/gcompris/src/activities/memory/resource/background.svg"
withTux: true
}
/* GCompris - Data.qml
*
* Copyright (C) 2020 Deepak Kumar <deepakdk2431@gmail.com>
*
* Authors:
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
import GCompris 1.0
import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory
Data {
objective: qsTr("Addition table of 1.")
difficulty: 4
data: [
{ // Level 1
columns: 5,
rows: 2,
texts: Memory.getAddTable(1)
}
]
}
/* GCompris - Data.qml
*
* Copyright (C) 2020 Deepak Kumar <deepakdk2431@gmail.com>
*
* Authors:
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
import GCompris 1.0
import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory
Data {
objective: qsTr("Addition table of 10.")
difficulty: 5
data: [
{ // Level 1
columns: 5,
rows: 2,
texts: Memory.getAddTable(10)
}
]
}
/* GCompris - Data.qml
*
* Copyright (C) 2020 Deepak Kumar <deepakdk2431@gmail.com>
*
* Authors:
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
import GCompris 1.0
import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory
Data {
objective: qsTr("Addition table of 2.")
difficulty: 4
data: [
{ // Level 1
columns: 5,
rows: 2,
texts: Memory.getAddTable(2)
}
]
}
/* GCompris - Data.qml
*
* Copyright (C) 2020 Deepak Kumar <deepakdk2431@gmail.com>
*
* Authors:
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
import GCompris 1.0
import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory
Data {
objective: qsTr("Addition table of 3.")
difficulty: 4
data: [
{ // Level 1
columns: 5,
rows: 2,
texts: Memory.getAddTable(3)
}
]
}
/* GCompris - Data.qml
*
* Copyright (C) 2020 Deepak Kumar <deepakdk2431@gmail.com>
*
* Authors:
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
import GCompris 1.0
import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory
Data {
objective: qsTr("Addition table of 4.")
difficulty: 4
data: [
{ // Level 1
columns: 5,
rows: 2,
texts: Memory.getAddTable(4)
}
]
}
/* GCompris - Data.qml
*
* Copyright (C) 2020 Deepak Kumar <deepakdk2431@gmail.com>
*
* Authors:
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
import GCompris 1.0
import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory
Data {
objective: qsTr("Addition table of 5.")
difficulty: 4
data: [
{ // Level 1
columns: 5,
rows: 2,
texts: Memory.getAddTable(5)
}
]
}
/* GCompris - Data.qml
*
* Copyright (C) 2020 Deepak Kumar <deepakdk2431@gmail.com>
*
* Authors:
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
import GCompris 1.0
import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory
Data {
objective: qsTr("Addition table of 6.")
difficulty: 5
data: [
{ // Level 1
columns: 5,
rows: 2,
texts: Memory.getAddTable(6)
}
]
}
/* GCompris - Data.qml
*
* Copyright (C) 2020 Deepak Kumar <deepakdk2431@gmail.com>
*
* Authors:
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
import GCompris 1.0
import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory
Data {
objective: qsTr("Addition table of 7.")
difficulty: 5
data: [
{ // Level 1
columns: 5,
rows: 2,
texts: Memory.getAddTable(7)
}
]
}
/* GCompris - Data.qml
*
* Copyright (C) 2020 Deepak Kumar <deepakdk2431@gmail.com>
*
* Authors:
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
import GCompris 1.0
import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory
Data {
objective: qsTr("Addition table of 8.")
difficulty: 5
data: [
{ // Level 1
columns: 5,
rows: 2,
texts: Memory.getAddTable(8)
}
]
}
/* GCompris - Data.qml
*
* Copyright (C) 2020 Deepak Kumar <deepakdk2431@gmail.com>
*
* Authors:
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
import GCompris 1.0
import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory
Data {
objective: qsTr("Addition table of 9.")
difficulty: 5
data: [
{ // Level 1
columns: 5,
rows: 2,
texts: Memory.getAddTable(9)
}
]
}
......@@ -40,4 +40,5 @@ In this game, these cards are hiding the two parts of an adding-up sum (also cal
credit: ""
section: "math memory arithmetic"
createdInVersion: 0
levels: "1,2,3,4,5,6,7,8,9,10"
}
......@@ -22,9 +22,7 @@
import QtQuick 2.6
import "../memory"
import "memory-adddataset.js" as Dataset
MemoryCommon {
dataset: Dataset.get()
backgroundImg: "qrc:/gcompris/src/activities/memory/resource/background.svg"
}
/* GCompris
*
* Copyright (C) 2014 Bruno Coudoin
*
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <https://www.gnu.org/licenses/>.
*/
.import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory
var memory_cards = [
{ // Level 1
columns: 5,
rows: 2,
texts: Memory.getAddTable(1)
},
{ // Level 2
columns: 5,
rows: 2,
texts: Memory.getAddTable(2)
},
{ // Level 3
columns: 5,
rows: 2,
texts: Memory.getAddTable(3)
},
{ // Level 4
columns: 5,
rows: 2,
texts: Memory.getAddTable(4)
},
{ // Level 5
columns: 5,
rows: 2,
texts: Memory.getAddTable(5)
},
{ // Level 6
columns: 5,
rows: 2,
texts: Memory.getAddTable(6)
},
{ // Level 7
columns: 5,
rows: 2,
texts: Memory.getAddTable(7)
},
{ // Level 8
columns: 5,
rows: 2,
texts: Memory.getAddTable(8)
},
{ // Level 9
columns: 5,
rows: 2,
texts: Memory.getAddTable(9)
},
{ // Level 10
columns: 5,
rows: 2,
texts: Memory.getAddTable(10)
}
]
function get() {
return memory_cards
}
/* GCompris - Data.qml
*
* Copyright (C) 2020 Deepak Kumar <deepakdk2431@gmail.com>
*
* Authors:
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
import GCompris 1.0
import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory
Data {
objective: qsTr("Addition table of 1.")
difficulty: 4
data: [
{ // Level 1
columns: 5,
rows: 2,
texts: Memory.getAddTable(1)
}
]
}
/* GCompris - Data.qml
*
* Copyright (C) 2020 Deepak Kumar <deepakdk2431@gmail.com>
*
* Authors:
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
import GCompris 1.0
import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory
Data {
objective: qsTr("Addition table of 10.")
difficulty: 5
data: [
{ // Level 1
columns: 5,
rows: 2,
texts: Memory.getAddTable(10)
}
]
}
/* GCompris - Data.qml
*
* Copyright (C) 2020 Deepak Kumar <deepakdk2431@gmail.com>
*
* Authors:
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
import GCompris 1.0
import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory
Data {
objective: qsTr("Addition table of 2.")
difficulty: 4
data: [
{ // Level 1
columns: 5,
rows: 2,
texts: Memory.getAddTable(2)
}
]
}
/* GCompris - Data.qml
*
* Copyright (C) 2020 Deepak Kumar <deepakdk2431@gmail.com>
*
* Authors:
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
import GCompris 1.0
import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory
Data {
objective: qsTr("Addition table of 3.")</