-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kristian Rother
committed
Jan 21, 2024
1 parent
acbb3e9
commit c8a1858
Showing
3 changed files
with
23 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters