Navadra / navadra-jeu

Le jeu version web
GNU Lesser General Public License v3.0
7 stars 1 forks source link

Data for exercises #2

Open grib0 opened 5 years ago

grib0 commented 5 years ago

Hi, My girl was a big fan of the online game and was disappointed of the end of the game.

I'm glad to find the source code and the instructions to install are clear and operational.

However, the NAVADRA_INIT.sql does not contains the exercises. Does it mean that I should create some in the professor section ? Are there some some exercises data somewhere else ? Regards,

jrevault commented 4 years ago

Hi, For this version (the website one) there are no predefined exercises, they are dynamically generated.

In the generator/challenge folder you will find 5 subfolder. base is for the first exercises, forget about it water, earth, wind & fire (🎸) are for the domains, and each of these folder has sub-domains. All sub-domains are divided into several level of difficulties (from 1 to 4, 1 being the easiest) into folders.

In these difficulty folders you will find several exercise typology in a json format, that drives the generation at runtime.

To add new kinds of exercises you have to add new JSON files in these folders respecting the generated/readme.txt file instructions (which are not extremely clear unfortunately).