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

Added Game of Life in Haskell #836

Merged
merged 7 commits into from
Mar 30, 2019
Merged

Added Game of Life in Haskell #836

merged 7 commits into from
Mar 30, 2019

Conversation

auroq
Copy link
Contributor

@auroq auroq commented Dec 19, 2018

Congrats on taking the first step to contributing to the Sample Programs in Every Language repository!

For simplicity, please make sure that your pull request includes one and only one sample program and language.

Please Complete the Following

  • I would NOT like credit for my contribution in the article (credit will be included otherwise)
  • I plan to write the article for this code snippet
  • I named the pull request using <Sample Program> in <Language> format
  • I created/updated the language README
    • I added the sample program name to the README
    • I added fun facts (i.e. debut, developer, typing, etc.)
    • I added reference link(s) to the README
    • I added solution citations when necessary (see plagiarism)
  • I fixed Add Game of Life in Haskell #784

Notes

This is not yet ready, but since it is long I thought it would be good to start a review of it.

Currently it only uses the CLI for the UI (which is hard enough in haskell by itself).
I also plan to change the way it determines initial spawn locations.
This does require one library to run: argparser. I noted that at the top of the file. If necessary, I can remove that, but it won't be nearly as pretty. I know we try to avoid this elsewhere, but I noticed some other game of life implementations, such as python, use libraries in order to do the GUI.

@auroq auroq added enhancement Any code that improves the repo game of life labels Dec 19, 2018
@auroq auroq added this to the 250 Snippets milestone Dec 19, 2018
@jrg94 jrg94 requested a review from a team December 20, 2018 04:02
@jrg94 jrg94 self-assigned this Dec 20, 2018
@jrg94
Copy link
Member

jrg94 commented Dec 20, 2018

No sweat with libraries! I'm actually all for it if it simplifies the implementation. I'm more so worried about external dependencies as it makes life much more difficult when testing.

@auroq
Copy link
Contributor Author

auroq commented Dec 20, 2018

Sorry. I should have been more clear. That's what I meant by libraries. ArgParser is an external dependency that's used to parse the CLI input and provide help text and error handling. All the other libraries ship with ghc (the haskell compiler).

@jrg94
Copy link
Member

jrg94 commented Dec 20, 2018

Ahh! Makes sense. Well, to be fair, Game of Life is a bit of an undertaking in any language. It's a bit different than a lot of our current projects.

@jrg94 jrg94 modified the milestones: 250 Snippets, 500 Code Snippets Jan 2, 2019
@jrg94
Copy link
Member

jrg94 commented Mar 30, 2019

Doing some pull request decluttering. Going to pull this in, and we can make an issue for working on it in the future.

@jrg94 jrg94 changed the title WIP: Added Game of Life in Haskell Added Game of Life in Haskell Mar 30, 2019
@jrg94 jrg94 merged commit ea537ae into master Mar 30, 2019
@jrg94 jrg94 deleted the haskell-gol branch March 30, 2019 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Any code that improves the repo
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add Game of Life in Haskell
2 participants