cherrywood55 / quiz-game Goto Github PK
View Code? Open in Web Editor NEWA simple quiz game built using Python
A simple quiz game built using Python
(At least 10 more in each section)
Since you are saving all the questions and answers as list elements in the main python script, this program becomes more difficult to manage as more questions and answers are added to it.
Solution : Save the question-answers pairs as a list of ordered sets in an external file which can be easily modified to add or remove questions without having to change the main script.
External files maybe in the form of .csv, .json or .py .
In the start menu, if you accidentally press something other than A or a or B or b, you will get kicked out of the game. Would be nice to give player a chance to correct a mistaken keystroke before getting kicked off.
After the quiz is taken, the final output with the scores comes with a question number, 1, Eg:
Q.1 Absolutely Correct!.
Your Score: 2 /15
The question number could be dynamically generated.
Some enhancement features which are pretty easy and fun to do:
After the quiz is over, the user would probably want to see the questions they got right or wrong.
Also give the user some extra information and encourage them to learn more about the same topic.
Add links to appropriate websites where such info could be found.
The in game instructions say to choose a number, should be choose a letter.
Make the questions appear in a random order so that the player doesn't win just by sheer memorization!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.