aosabook/500lines

Recommend my project

neozhaoliang opened this issue · 2 comments

Hi: I have a python project that I think may fit in this repo. It builds an environment for running various maze animations from the bottom (in pure python, with only built-in modules). It can produce very nice GIF images. It's roughly 500 lines (the code can be trimmed to be less than 500 lines). Hope you could check it and give suggestions!

Page not found now

Yes it's deleted since I thought the maintainers of this project might not be interseted in it and have a look at there, because I got no reply for a year ...

The project is now here, note it's independent of other directories in that repo, and it has been enlarged since l opened this issue, added more rich features... but the main framework (in/gifmaze/) can be easily fitted into 500 lines.

The code is written in pure python, no extra libs/softwares are needed, and there is no draw/coloring command in the code. It can produce highly optimized gif images in only a few seconds, even there are thousands of frames in the image.

Some examples:

enterprise

gosperglidergun
hilbert

langton_ant

wilson-bfs
kruskal

You can run the example*.py scripts to see how fast it runs.

I think this project fits the spirit of 500 lines because:

  1. It can output lots of cool gif images, so people can easily enjoy it.
  2. It builds everything from the ground (it implemented a simple gif encoder), no third-party libs nor image process softwares are required.
  3. Many algorithms are involved here (LZW, Wilson, BFS/DEF, cellualr automata ...)