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

Refactor and Optimize avg and process Functions for Readability and Efficiency #114

Open
Anushka-Pote opened this issue Nov 9, 2024 · 0 comments

Comments

@Anushka-Pote
Copy link
Contributor

Description:
The avg and process functions currently contain complex and nested conditional logic, making them difficult to read and maintain. This issue focuses on refactoring both functions to improve clarity, reduce redundancy, and enhance overall efficiency.

Suggested Solution:
Optimize avg Function: Simplify conditions for current and previous to make the function more readable without affecting performance.
Refactor process Function Logic: Replace nested if-else conditions with a dictionary-based approach to handle cheat detection cases in a more structured way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants