Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wpm #22

Merged
merged 2 commits into from
Apr 8, 2022
Merged

Fix wpm #22

merged 2 commits into from
Apr 8, 2022

Conversation

Samyak2
Copy link
Owner

@Samyak2 Samyak2 commented Apr 8, 2022

fixes #21

See commit messages for details

fixes #21

see issue for the reasoning, etc.

number of correctly typed chars and number of uncorrected errors is
calculated after the typing has completed.

ToipeResults:
- changed field names
- documented fields
- added final_chars_typed_correctly and final_uncorrected_errors fields
- CPM is not available anymore
- WPM is calculated using a fixed 5 chars per word instead of
  calculating it on the fly
    - uncorrected errors are penalized
    - value is clamped to 0.0 to prevent negative WPM
- `num_correct_chars()` did not make sense to keep as a function since
  it's only used in accuracy
    - note: accuracy calculation has not changed
@Samyak2 Samyak2 added bug Something isn't working enhancement New feature or request labels Apr 8, 2022
@Samyak2 Samyak2 merged commit ac21990 into main Apr 8, 2022
@Samyak2 Samyak2 deleted the fix-wpm branch April 8, 2022 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix WPM score
1 participant