├── MANIFEST.in ├── Makefile ├── README.md ├── docs ├── AmoebaWorld.html ├── CellWorld.html ├── Gui.html ├── Lumpy.html ├── Sync.html ├── TurmiteWorld.html ├── TurtleWorld.html └── World.html ├── examples ├── amoeba_example.py ├── lumpy_example1.py ├── lumpy_example2.py ├── lumpy_example3.py ├── structshape_test.py ├── turmite_example.py ├── turtle_code.py └── turtle_example.py ├── python2 ├── AmoebaWorld.py ├── AmoebaWorld_test.py ├── CellWorld.py ├── CellWorld_test.py ├── Gui.py ├── Gui_test.py ├── Lumpy.py ├── Lumpy_test.py ├── Makefile ├── Sync.py ├── Sync_test.py ├── TurmiteWorld.py ├── TurmiteWorld_test.py ├── TurtleWorld.py ├── TurtleWorld_test.py ├── World.py ├── World_test.py ├── color_list.py ├── danger.gif ├── downey08semaphores.pdf ├── lumpy_example1.py ├── lumpy_example2.py ├── lumpy_example3.py ├── mutex.py ├── structshape.py ├── structshape_test.py ├── sync_code │ ├── Makefile │ ├── __init__.py │ ├── barber.py │ ├── barber2.py │ ├── barber3.py │ ├── barber4.py │ ├── barrier.py │ ├── barrier1.py │ ├── barrier2.py │ ├── barrier3.py │ ├── chart.fig │ ├── coke.py │ ├── conditional.py │ ├── dance.py │ ├── deadlock.py │ ├── fox.py │ ├── morris.py │ ├── multiplex.py │ ├── mutex.py │ ├── mutex2.py │ ├── mydance.py │ ├── pair.py │ ├── readwrite.py │ ├── readwrite2.py │ ├── rebar1.py │ ├── rebar2.py │ ├── rebar3.py │ ├── rebar4.py │ ├── rebar5.py │ ├── rendez.py │ ├── signal.py │ ├── temp.ps │ ├── test.py │ └── title.py ├── thinkpython.pdf ├── turtle_code.py └── words.txt ├── python3 ├── AmoebaWorld.py ├── CellWorld.py ├── Gui.py ├── Lumpy.py ├── Makefile ├── Sync.py ├── TurmiteWorld.py ├── TurtleWorld.py ├── World.py ├── __init__.py ├── color_list.py ├── danger.gif ├── mutex.py ├── structshape.py └── words.txt ├── setup.py └── tests ├── AmoebaWorld_test.py ├── CellWorld_test.py ├── Gui_test.py ├── Lumpy_test.py ├── Sync_test.py ├── TurmiteWorld_test.py ├── TurtleWorld_test.py ├── World_test.py └── structshape_test.py /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/README.md -------------------------------------------------------------------------------- /docs/AmoebaWorld.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/docs/AmoebaWorld.html -------------------------------------------------------------------------------- /docs/CellWorld.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/docs/CellWorld.html -------------------------------------------------------------------------------- /docs/Gui.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/docs/Gui.html -------------------------------------------------------------------------------- /docs/Lumpy.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/docs/Lumpy.html -------------------------------------------------------------------------------- /docs/Sync.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/docs/Sync.html -------------------------------------------------------------------------------- /docs/TurmiteWorld.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/docs/TurmiteWorld.html -------------------------------------------------------------------------------- /docs/TurtleWorld.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/docs/TurtleWorld.html -------------------------------------------------------------------------------- /docs/World.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/docs/World.html -------------------------------------------------------------------------------- /examples/amoeba_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/examples/amoeba_example.py -------------------------------------------------------------------------------- /examples/lumpy_example1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/examples/lumpy_example1.py -------------------------------------------------------------------------------- /examples/lumpy_example2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/examples/lumpy_example2.py -------------------------------------------------------------------------------- /examples/lumpy_example3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/examples/lumpy_example3.py -------------------------------------------------------------------------------- /examples/structshape_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/examples/structshape_test.py -------------------------------------------------------------------------------- /examples/turmite_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/examples/turmite_example.py -------------------------------------------------------------------------------- /examples/turtle_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/examples/turtle_code.py -------------------------------------------------------------------------------- /examples/turtle_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/examples/turtle_example.py -------------------------------------------------------------------------------- /python2/AmoebaWorld.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/AmoebaWorld.py -------------------------------------------------------------------------------- /python2/AmoebaWorld_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/AmoebaWorld_test.py -------------------------------------------------------------------------------- /python2/CellWorld.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/CellWorld.py -------------------------------------------------------------------------------- /python2/CellWorld_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/CellWorld_test.py -------------------------------------------------------------------------------- /python2/Gui.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/Gui.py -------------------------------------------------------------------------------- /python2/Gui_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/Gui_test.py -------------------------------------------------------------------------------- /python2/Lumpy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/Lumpy.py -------------------------------------------------------------------------------- /python2/Lumpy_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/Lumpy_test.py -------------------------------------------------------------------------------- /python2/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/Makefile -------------------------------------------------------------------------------- /python2/Sync.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/Sync.py -------------------------------------------------------------------------------- /python2/Sync_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/Sync_test.py -------------------------------------------------------------------------------- /python2/TurmiteWorld.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/TurmiteWorld.py -------------------------------------------------------------------------------- /python2/TurmiteWorld_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/TurmiteWorld_test.py -------------------------------------------------------------------------------- /python2/TurtleWorld.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/TurtleWorld.py -------------------------------------------------------------------------------- /python2/TurtleWorld_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/TurtleWorld_test.py -------------------------------------------------------------------------------- /python2/World.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/World.py -------------------------------------------------------------------------------- /python2/World_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/World_test.py -------------------------------------------------------------------------------- /python2/color_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/color_list.py -------------------------------------------------------------------------------- /python2/danger.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/danger.gif -------------------------------------------------------------------------------- /python2/downey08semaphores.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/downey08semaphores.pdf -------------------------------------------------------------------------------- /python2/lumpy_example1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/lumpy_example1.py -------------------------------------------------------------------------------- /python2/lumpy_example2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/lumpy_example2.py -------------------------------------------------------------------------------- /python2/lumpy_example3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/lumpy_example3.py -------------------------------------------------------------------------------- /python2/mutex.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/mutex.py -------------------------------------------------------------------------------- /python2/structshape.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/structshape.py -------------------------------------------------------------------------------- /python2/structshape_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/structshape_test.py -------------------------------------------------------------------------------- /python2/sync_code/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/Makefile -------------------------------------------------------------------------------- /python2/sync_code/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python2/sync_code/barber.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/barber.py -------------------------------------------------------------------------------- /python2/sync_code/barber2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/barber2.py -------------------------------------------------------------------------------- /python2/sync_code/barber3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/barber3.py -------------------------------------------------------------------------------- /python2/sync_code/barber4.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/barber4.py -------------------------------------------------------------------------------- /python2/sync_code/barrier.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/barrier.py -------------------------------------------------------------------------------- /python2/sync_code/barrier1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/barrier1.py -------------------------------------------------------------------------------- /python2/sync_code/barrier2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/barrier2.py -------------------------------------------------------------------------------- /python2/sync_code/barrier3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/barrier3.py -------------------------------------------------------------------------------- /python2/sync_code/chart.fig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/chart.fig -------------------------------------------------------------------------------- /python2/sync_code/coke.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/coke.py -------------------------------------------------------------------------------- /python2/sync_code/conditional.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/conditional.py -------------------------------------------------------------------------------- /python2/sync_code/dance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/dance.py -------------------------------------------------------------------------------- /python2/sync_code/deadlock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/deadlock.py -------------------------------------------------------------------------------- /python2/sync_code/fox.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/fox.py -------------------------------------------------------------------------------- /python2/sync_code/morris.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/morris.py -------------------------------------------------------------------------------- /python2/sync_code/multiplex.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/multiplex.py -------------------------------------------------------------------------------- /python2/sync_code/mutex.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/mutex.py -------------------------------------------------------------------------------- /python2/sync_code/mutex2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/mutex2.py -------------------------------------------------------------------------------- /python2/sync_code/mydance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/mydance.py -------------------------------------------------------------------------------- /python2/sync_code/pair.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/pair.py -------------------------------------------------------------------------------- /python2/sync_code/readwrite.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/readwrite.py -------------------------------------------------------------------------------- /python2/sync_code/readwrite2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/readwrite2.py -------------------------------------------------------------------------------- /python2/sync_code/rebar1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/rebar1.py -------------------------------------------------------------------------------- /python2/sync_code/rebar2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/rebar2.py -------------------------------------------------------------------------------- /python2/sync_code/rebar3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/rebar3.py -------------------------------------------------------------------------------- /python2/sync_code/rebar4.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/rebar4.py -------------------------------------------------------------------------------- /python2/sync_code/rebar5.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/rebar5.py -------------------------------------------------------------------------------- /python2/sync_code/rendez.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/rendez.py -------------------------------------------------------------------------------- /python2/sync_code/signal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/signal.py -------------------------------------------------------------------------------- /python2/sync_code/temp.ps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/temp.ps -------------------------------------------------------------------------------- /python2/sync_code/test.py: -------------------------------------------------------------------------------- 1 | mutex = Semaphore(1) 2 | -------------------------------------------------------------------------------- /python2/sync_code/title.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/sync_code/title.py -------------------------------------------------------------------------------- /python2/thinkpython.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/thinkpython.pdf -------------------------------------------------------------------------------- /python2/turtle_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/turtle_code.py -------------------------------------------------------------------------------- /python2/words.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python2/words.txt -------------------------------------------------------------------------------- /python3/AmoebaWorld.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python3/AmoebaWorld.py -------------------------------------------------------------------------------- /python3/CellWorld.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python3/CellWorld.py -------------------------------------------------------------------------------- /python3/Gui.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python3/Gui.py -------------------------------------------------------------------------------- /python3/Lumpy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python3/Lumpy.py -------------------------------------------------------------------------------- /python3/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python3/Makefile -------------------------------------------------------------------------------- /python3/Sync.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python3/Sync.py -------------------------------------------------------------------------------- /python3/TurmiteWorld.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python3/TurmiteWorld.py -------------------------------------------------------------------------------- /python3/TurtleWorld.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python3/TurtleWorld.py -------------------------------------------------------------------------------- /python3/World.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python3/World.py -------------------------------------------------------------------------------- /python3/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python3/color_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python3/color_list.py -------------------------------------------------------------------------------- /python3/danger.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python3/danger.gif -------------------------------------------------------------------------------- /python3/mutex.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python3/mutex.py -------------------------------------------------------------------------------- /python3/structshape.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python3/structshape.py -------------------------------------------------------------------------------- /python3/words.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/python3/words.txt -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/setup.py -------------------------------------------------------------------------------- /tests/AmoebaWorld_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/tests/AmoebaWorld_test.py -------------------------------------------------------------------------------- /tests/CellWorld_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/tests/CellWorld_test.py -------------------------------------------------------------------------------- /tests/Gui_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/tests/Gui_test.py -------------------------------------------------------------------------------- /tests/Lumpy_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/tests/Lumpy_test.py -------------------------------------------------------------------------------- /tests/Sync_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/tests/Sync_test.py -------------------------------------------------------------------------------- /tests/TurmiteWorld_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/tests/TurmiteWorld_test.py -------------------------------------------------------------------------------- /tests/TurtleWorld_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/tests/TurtleWorld_test.py -------------------------------------------------------------------------------- /tests/World_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/tests/World_test.py -------------------------------------------------------------------------------- /tests/structshape_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/Swampy/HEAD/tests/structshape_test.py --------------------------------------------------------------------------------