asweigart / asweigart/PythonStdioGames

Implement Immediate Time-Out Response in Alphabetize Quiz Game

Open
#19 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
971
Forks
216
PR merge metrics
No merged PRs in 30d

Description

In the Alphabetize Quiz Game, the game waits for the player to press Enter before checking if the time limit has been exceeded. This causes a delay in ending the game if the player takes longer on a response close to the 30-second limit, leading to inconsistent scoring and an unresponsive user experience.
In fact, the game should immediately show "TIME'S UP!" and end as soon as the 30 seconds are over, regardless of user input status.

A suggested solution would be to implement a background timer that triggers an immediate stop after the 30 seconds are up.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.