Home >Backend Development >Python Tutorial >Portfolio Project - Python Terminal Game
This blog post documents my latest project from Codecademy's Computer Science Course: a Python terminal-based quiz game. The final stage involved writing this accompanying blog post.
The game itself is quite straightforward, employing two classes: Question
and GameManager
. A list of Question
objects, defined in questions.py
, is loaded into a GameManager
instance to run the game.
The game's code is available on GitHub: https://www.php.cn/link/827cf4bc2f28f73e24c151cad3be7567 The main entry point is main.py
.
One area for improvement is the exact answer matching requirement. This leads to some instances where a correct answer is marked as incorrect due to minor variations in spelling or capitalization. Future iterations will address this limitation, perhaps by incorporating case-insensitive comparisons or fuzzy matching techniques.
The above is the detailed content of Portfolio Project - Python Terminal Game. For more information, please follow other related articles on the PHP Chinese website!