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

Turn game step programs into functions #19

Closed
programaker opened this issue Jul 24, 2019 · 1 comment
Closed

Turn game step programs into functions #19

programaker opened this issue Jul 24, 2019 · 1 comment
Labels
done Finished task investigation Need to investigate further refactoring Improve things without change behavior

Comments

@programaker
Copy link
Owner

We are using classes to model the Free programs to have the convenience of importing all algebras at the top to make them accessible to the private helper functions, but the program is actually only a function - play().

Try to figure out a more FP design without the classes, if possible and if worths it. Sometimes it’s better to let Scala be Scala 😄

@programaker programaker added investigation Need to investigate further refactoring Improve things without change behavior labels Jul 24, 2019
@programaker programaker added the in progress Task is being worked on label Oct 1, 2019
programaker pushed a commit that referenced this issue Oct 2, 2019
programaker pushed a commit that referenced this issue Oct 2, 2019
programaker pushed a commit that referenced this issue Oct 2, 2019
programaker added a commit that referenced this issue Oct 2, 2019
programaker added a commit that referenced this issue Oct 2, 2019
programaker added a commit that referenced this issue Oct 2, 2019
programaker added a commit that referenced this issue Oct 3, 2019
programaker added a commit that referenced this issue Oct 3, 2019
programaker added a commit that referenced this issue Oct 3, 2019
programaker added a commit that referenced this issue Oct 3, 2019
programaker added a commit that referenced this issue Oct 3, 2019
programaker added a commit that referenced this issue Oct 3, 2019
programaker added a commit that referenced this issue Oct 3, 2019
…InjectK and nor is a Free smart constructor
@programaker
Copy link
Owner Author

Not worth it to turn everything in stand-alone functions, but a lot of things could and we took many lessons from this issue =D

@programaker programaker added done Finished task and removed in progress Task is being worked on labels Oct 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done Finished task investigation Need to investigate further refactoring Improve things without change behavior
Projects
None yet
Development

No branches or pull requests

1 participant