- added function to get random number and card

This commit is contained in:
2021-06-08 15:58:32 +02:00
parent 98177f6b5b
commit 948529818b
3 changed files with 119 additions and 22 deletions

71
data/cards.json Normal file
View File

@@ -0,0 +1,71 @@
[
{
"id": 1,
"diffuculty": 1,
"question": "Was?",
"answers": [
{
"answer_a": "A",
"status": false
},
{
"answer_b": "B",
"status": true
},
{
"answer_c": "C",
"status": false
},
{
"answer_d": "D",
"status": false
}
]
},
{
"id": 2,
"diffuculty": 2,
"question": "Wie?",
"answers": [
{
"answer_a": "A",
"status": false
},
{
"answer_b": "B",
"status": true
},
{
"answer_c": "C",
"status": false
},
{
"answer_d": "D",
"status": false
}
]
},
{
"id": 3,
"diffuculty": 3,
"question": "Wo?",
"answers": [
{
"answer_a": "A",
"status": false
},
{
"answer_b": "B",
"status": true
},
{
"answer_c": "C",
"status": false
},
{
"answer_d": "D",
"status": false
}
]
}
]