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

Updated GameOfLife in Java #1910

Merged
merged 3 commits into from
Oct 2, 2020
Merged

Conversation

theuntamed839
Copy link
Contributor

@theuntamed839 theuntamed839 commented Oct 1, 2020

setDefaultCloseOperation will close the game window when the X button is clicked

Congrats on taking the first step to contributing to the Sample Programs repository maintained by The Renegade Coder!
For simplicity, please make sure that your pull request includes one and only one contribution.

Complete the Applicable Sections Below

Find which section best describes your pull request and make sure you fill it out. To start, let us know which issue you've fixed.

  • I fixed #your-issue-number-here

Code Snippets

  • 1 I named the pull request using Added/Updated <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)

Testing

  • I named the pull request using Added/Updated <Language>/<Project> Testing format
  • I followed the testinfo template, if applicable

Notes

Feel free to describe what you added or updated.

setDefaultCloseOperation will close the game window when the X button is clicked
1 is niether prime nor composite
@jrg94 jrg94 requested a review from a team October 1, 2020 19:11
@jrg94 jrg94 self-assigned this Oct 1, 2020
@jrg94 jrg94 added enhancement Any code that improves the repo game of life labels Oct 1, 2020
@jrg94 jrg94 added this to the 500 Code Snippets milestone Oct 1, 2020
Copy link
Member

@jrg94 jrg94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All this is great! You raise a great point about 1 which we never considered in the original documentation: https://sample-programs.therenegadecoder.com/projects/prime-number/

Unfortunately, we'll have to update all of our prime implementations because testing currently assumes 1 is composite. Perhaps you can pull that portion out into a separate pull request. That way we can incorporate your GameOfLife change.

Copy link
Member

@jrg94 jrg94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@jrg94 jrg94 merged commit 7aff53a into TheRenegadeCoder:master Oct 2, 2020
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.

None yet

2 participants