# tetris **Repository Path**: hocker/tetris ## Basic Information - **Project Name**: tetris - **Description**: 使用python3控制端编辑的一个小游戏 - **Primary Language**: Python - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-04 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # tetris #### 介绍 使用python3控制端编辑的一个小游戏 |按键|功能|备注| |-|:-|:-| |a|向左|| |d|向右|| |w|变形|| |s|加速下落|| 代码运行需要 pynput ```bash pip install pynput ``` 运行效果 ```bash 0 ^------------------^ 1 | | | | 2 | | | | 3 | x x x | | score: 3 | 4 | x | | | 5 | | | | 6 | | | | 7 | | | | 8 | | | next: | 9 | | | | 10 | | | x | 11 | x | | | 12 | x | | | 13 | x x x x | | | 14 | x x x x x x x x x | | | 15 | x x x x x x x x x | | | 16 ------------------------v------------------v ``` --- 学习了一些库的使用,实现还是挺简单的,供大家参考。 一个小游戏,难度不大,我也是给朋友展示python的功能,促进学习兴趣。 ---