Issues in Game WordLadder
- Repeated API calls in
is_valid_word() cause slow gameplay and potential rate-limit errors also cause create a delay after inputting the word.
- Program crashes when
wordList.txt is missing or misplaced.
- No option to view high scores even though they are saved in
highscores.json they can be shown to player in run time.
Solutions
- Implement a cache dictionary (
valid_cache) to store API results and avoid repeated lookups also saves times.
- Add a file existence check using
os.path.exists() before opening wordList.txt to prevent crashes.
- Introduce a "View High Scores" menu option that reads and displays results from
highscores.json for better user experience.
Please assign this task to me, i want to contribute and fix the issues :)