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

Use pure functions that don't mutate state #7

Open
pwolfert opened this issue Feb 20, 2018 · 0 comments
Open

Use pure functions that don't mutate state #7

pwolfert opened this issue Feb 20, 2018 · 0 comments
Assignees

Comments

@pwolfert
Copy link
Owner

Refactor to make the Player, Spell, ..., modules a series of pure functions that return a new state. As spell interactions get more complex, it's harder to keep track of the state changes and make sure we don't introduce bugs caused by data mutation.

@pwolfert pwolfert self-assigned this Feb 20, 2018
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

1 participant