forked from Arquisoft/wiq_0
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from Arquisoft/question_generator
i18n and category filters for question generation
- Loading branch information
Showing
17 changed files
with
476 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
question_generator/cities/citiesQuestions.js → ...rator/geography/cities/citiesQuestions.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const citiesTemplate=require('./cities/citiesTemplates') | ||
function loadData(){ | ||
citiesTemplate.loadData(); | ||
} | ||
const templates=[ | ||
citiesTemplate.getRandomQuestion | ||
] | ||
module.exports.getRandomQuestion = () => templates[Math.floor(Math.random()*templates.length)](); | ||
module.exports.loadData = () =>loadData(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
|
||
"Which city is higher above sea level?": "Which city is higher above sea level?", | ||
"Which city has more population?": "Which city has more population?", | ||
"Which city is in?": "Which city is in %s?", | ||
|
||
|
||
|
||
"Which planet is bigger?": "Which planet is bigger?", | ||
|
||
|
||
|
||
|
||
"Who has more Grand Slams?": "Who has more Grand Slams?" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
|
||
"Which city is higher above sea level?": "¿Qué ciudad tiene más altitud sobre el nivel del mar?", | ||
"Which city has more population?": "¿Qué ciudad tiene más población?", | ||
"Which city is in?": "¿Qué ciudad está en %s?", | ||
|
||
|
||
|
||
"Which planet is bigger?": "¿Qué planeta tiene un tamaño mayor?", | ||
|
||
|
||
|
||
|
||
"Who has more Grand Slams?": "¿Quién tiene más Grand Slams?" | ||
} |
Oops, something went wrong.