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

Change key handling to use match / case #19

Open
KingNook opened this issue Sep 18, 2024 · 0 comments
Open

Change key handling to use match / case #19

KingNook opened this issue Sep 18, 2024 · 0 comments
Labels
refactor Refactoring (neatifying) code

Comments

@KingNook
Copy link
Owner

Context

The key handling code is pretty much boilerplate from Pygame docs / stackoverflow. I would quite like to change it to use match / case statements (to make it more pythonic)

Thoughts / Challenges

Not entirely sure how match / case works (haven't tried before) so that'll be a challenge. If it works how I expect, it'll make the code neater

@KingNook KingNook added the refactor Refactoring (neatifying) code label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Refactoring (neatifying) code
Projects
None yet
Development

No branches or pull requests

1 participant