Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Implemented Conway's Game of Life with classic "glider" example #62

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

Merged
merged 2 commits into from
Oct 1, 2019

Conversation

ssangervasi
Copy link
Contributor

Hi there, here's a Game of Life implementation!

  • Written for Python 3, tested with Python 3.7.0
  • Module is executable and also importable.
  • Supports converting a game board to and from a multiline string.

Here is a sample of the output of the glider example:

> python conways_game_of_life.py

Conway's Game of Life
Starting with seed: "Glider"
Running for 15 generations.

Generation 1:
··0····
0·0····
·00····
·······
·······
·······
Generation 2:
·0·····
··00···
·00····
·······
·······
·······
Generation 3: ...

* Module is executable and also importable.
* Supports converting a game board to and from a multiline string.
@ssangervasi
Copy link
Contributor Author

@abranhe - Last but not least 🙇

Copy link
Member

@abranhe abranhe left a comment

Choose a reason for hiding this comment

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

Thanks so much for your contribution to The All ▲lgorithms Project. Without people like you submitting Pull Requests we couldn't run this project. You rock @ssangervasi

@abranhe abranhe merged commit 4652400 into AllAlgorithms:master Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.