Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions examples/conways_game_of_life/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,19 @@ Then open your browser to [http://127.0.0.1:8521/](http://127.0.0.1:8521/) and p

## Files

* ``game_of_life/cell.py``: Defines the behavior of an individual cell, which can be in two states: DEAD or ALIVE.
* ``game_of_life/model.py``: Defines the model itself, initialized with a random configuration of alive and dead cells.
* ``game_of_life/portrayal.py``: Describes for the front end how to render a cell.
* ``game_of_live/server.py``: Defines an interactive visualization.
* ``conways_game_of_life/cell.py``: Defines the behavior of an individual cell, which can be in two states: DEAD or ALIVE.
* ``conways_game_of_life/model.py``: Defines the model itself, initialized with a random configuration of alive and dead cells.
* ``conways_game_of_life/portrayal.py``: Describes for the front end how to render a cell.
* ``conways_game_of_life/server.py``: Defines an interactive visualization.
* ``run.py``: Launches the visualization

## Optional

* ``conways_game_of_life/app.py``: can be used to run the simulation via the streamlit interface.
* For this some additional packages like ``streamlit`` and ``altair`` needs to be installed.
* Once installed, the app can be opened in the browser using : ``streamlit run app.py``


## Further Reading
[Conway's Game of Life](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life)

1 change: 0 additions & 1 deletion examples/conways_game_of_life/app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import mesa

import streamlit as st

import time
Expand Down