diff --git a/examples/conways_game_of_life/Readme.md b/examples/conways_game_of_life/Readme.md index 686afb40..85b591aa 100644 --- a/examples/conways_game_of_life/Readme.md +++ b/examples/conways_game_of_life/Readme.md @@ -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) diff --git a/examples/conways_game_of_life/app.py b/examples/conways_game_of_life/app.py index 78a55539..be739caa 100644 --- a/examples/conways_game_of_life/app.py +++ b/examples/conways_game_of_life/app.py @@ -1,5 +1,4 @@ import mesa - import streamlit as st import time