diff --git a/functions/tetris.png b/examples/tetris.png similarity index 100% rename from functions/tetris.png rename to examples/tetris.png diff --git a/functions/tetris.py b/examples/tetris.py similarity index 100% rename from functions/tetris.py rename to examples/tetris.py diff --git a/examples/tetris.rst b/examples/tetris.rst new file mode 100644 index 0000000..274c66c --- /dev/null +++ b/examples/tetris.rst @@ -0,0 +1,15 @@ +Tetris +====== + +.. image:: tetris.png + +In :download:`tetris.py`, you find a complete Tetris game. +It makes heavy use of the Numpy library. +The code was created in a coding speedrun; it almost has no structure. + +.. note:: + + There is also a bug when dropping long bricks to the ground. + Maybe some refactoring makes this issue easier to debug. + +.. literalinclude:: tetris.py diff --git a/functions/refactor_tetris.rst b/functions/refactor_tetris.rst deleted file mode 100644 index d2f5760..0000000 --- a/functions/refactor_tetris.rst +++ /dev/null @@ -1,15 +0,0 @@ -Refactor a Tetris game -====================== - -.. image:: tetris.png - -In :download:`tetris.py`, you find a complete Tetris game. -It makes heavy use of the Numpy library. -The code almost has no structure. - -Create functions with reasonable names to make the code cleaner. - -.. note:: - - There is also a bug when dropping long bricks to the ground. - Maybe the refactoring makes this issue easier to debug. diff --git a/hall_of_fame.rst b/hall_of_fame.rst new file mode 100644 index 0000000..cd1641d --- /dev/null +++ b/hall_of_fame.rst @@ -0,0 +1,27 @@ + +Hall of Fame +============ + +Game projects completed by course participants +---------------------------------------------- + +- `MantiGo `__ – a frantic quest for fast food at Kottbusser Tor by Naive Bayleaves +- `Rock-Paper-Scissors `__ – by Shreyaasri Prakash +- `Breakout `__ – by Alexander Rykov and Chen-Yu Liu +- `Wild West `__ – by Sultan Mirzoev +- `Minensuche `__ – minesweeper clone by Benny Henning +- `Mondrian 2.0 `__ – an image generator by Christin Jacobsen +- `Games in C++ `__ – project highlights from my 2016/2017 C++ course + + +Game projects I wrote myself +---------------------------- + +.. toctree:: + :maxdepth: 1 + + examples/breakout.rst + examples/tetris.rst + +- `Pandas go to Space `__ - a space traveling adventure with a web frontend +- `Snake `__ - a classic snake game diff --git a/index.rst b/index.rst index 5c47deb..1682105 100644 --- a/index.rst +++ b/index.rst @@ -123,14 +123,6 @@ Performance Optimization performance/profiling.rst concurrency/README.rst -Refactoring ------------ - -.. toctree:: - :maxdepth: 1 - - functions/refactor_tetris.rst - Challenges ---------- @@ -152,15 +144,15 @@ Challenges challenges/tsp.rst challenges/blockchain.rst challenges/metaclass.rst - project.rst -Example Programs ----------------- +Coding Project +-------------- .. toctree:: :maxdepth: 1 - examples/breakout.rst + project.rst + hall_of_fame.rst Appendix