Skip to content

Commit 1897381

Browse files
authored
Update Readme.md for Conway's Game of Life (#37)
See PR #36 for the app.py implementation if it. * Initialize Game of Life example * set slider text * udpate readme * Implement Streamlit UI for Boltzmann wealth model * resolve merge conflicts --------- Co-authored-by: Ankit Kumar <[email protected]>
1 parent f8408cd commit 1897381

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

examples/conways_game_of_life/Readme.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,19 @@ Then open your browser to [http://127.0.0.1:8521/](http://127.0.0.1:8521/) and p
1919

2020
## Files
2121

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

28+
## Optional
29+
30+
* ``conways_game_of_life/app.py``: can be used to run the simulation via the streamlit interface.
31+
* For this some additional packages like ``streamlit`` and ``altair`` needs to be installed.
32+
* Once installed, the app can be opened in the browser using : ``streamlit run app.py``
33+
34+
2835
## Further Reading
2936
[Conway's Game of Life](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life)
3037

examples/conways_game_of_life/app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import mesa
2-
32
import streamlit as st
43

54
import time

0 commit comments

Comments
 (0)