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

State in BaseballGame should be a tuple instead of a list #69

Open
jerry871002 opened this issue Sep 28, 2023 · 0 comments
Open

State in BaseballGame should be a tuple instead of a list #69

jerry871002 opened this issue Sep 28, 2023 · 0 comments
Assignees
Labels
low priority This is not urgent at the moment question Further information is needed refactor Improve code quality

Comments

@jerry871002
Copy link
Owner

In BaseballGame, the state only consists of two integers, which is strike and ball count. It's better to represent them using a tuple (or even better, a namedtuple) instead of a mutable list (which doesn't show exactly what is in a state).

@jerry871002 jerry871002 added question Further information is needed refactor Improve code quality low priority This is not urgent at the moment labels Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low priority This is not urgent at the moment question Further information is needed refactor Improve code quality
Projects
None yet
Development

No branches or pull requests

2 participants