sarmadhamdani02 / WebGames

This repo contains some web-based games, feel free to contribute 🙂 you can either create new games or contribute by solving issues.
https://webgames02.netlify.app/
9 stars 23 forks source link

Add more questions to the "Dev Game". #49

Open sarmadhamdani02 opened 1 year ago

sarmadhamdani02 commented 1 year ago

Add more questions to the Dev Game.

The system uses three arrays: questionArray[] for questions, mcqArray[] for question options, and key[] for answer indexes. These arrays are tied together by their indexes. For example, if a question is at index 0 in questionArray[], its options correspond to the 0th index of mcqArray[], and the answer's index is located at the 0th index of key[]. When introducing new questions, remember to ensure that the options and answer keys are positioned accurately at the corresponding indexes.

HadassaAvimor commented 1 year ago

@sarmadhamdani02 I realized that the game contains only questions about js. Would you like me to add in more languages?

sarmadhamdani02 commented 1 year ago

Hey @HadassaAvimor 👋,

Apologies for the delay in my response. I think adding questions for other languages is a fantastic idea! 😊 Go for it, and let's make this even more awesome! 🚀

HadassaAvimor commented 1 year ago

@sarmadhamdani02 Thanks for your response, I have a suggestion for improvement, my suggestion is that at the beginning of the game the player will be asked in which language he wants the quiz, and he will receive questions according to his choice. It is possible to ask the player already in the initial screen ( of the condition: if programmer...) I will be happy to do it when you approve me.

sarmadhamdani02 commented 1 year ago

@HadassaAvimor

Great idea! 👏 How about adding a general quiz option that covers questions related to all programming languages? 🤔

I'm excited about this feature, so definitely go for it! If you need any help along the way, feel free to reach out. 😊👍