# py2048 **Repository Path**: CodingNinja/py2048 ## Basic Information - **Project Name**: py2048 - **Description**: 200 行 Python 代码实现简易控制台 2048 游戏! - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: https://gitee.com/CodingNinja/py2048 - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-04-01 - **Last Updated**: 2022-06-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # py2048 200 行 _Python_ 代码实现简易控制台 [ **_2048_** ](http://gabrielecirulli.github.io/2048/) 游戏! > 源代码参考自 [实验楼](https://www.shiyanlou.com/courses/368)<-[伯乐在线](http://python.jobbole.com/84971/),有略微改动。 ![py2048](https://gitee.com/uploads/images/2018/0405/231554_36daca1f_1417905.png "py2048.png") ## 此版本特点: - 代码更 [Pythonic](http://zh-google-styleguide.readthedocs.io/en/latest/google-python-styleguide/contents/) - 函数改名,更清晰易懂 - 完整的中文注释 ## 关于 ImportError: No module named _curses **原因** :Windows 平台不支持 [curses](https://en.wikipedia.org/wiki/Curses_(programming_library)) 库 **解决方案** :使用 unofficial curses(非官方 curses 库)来代替 Python 自带的 [curses](https://docs.python.org/3.6/library/curses.html) 库。 1. 下载 whl 包。传送门:[非官方 curses](https://www.lfd.uci.edu/~gohlke/pythonlibs/#curses) - 选择对应版本,例如: _curses‑2.2‑cp36‑cp36m‑win_amd64.whl_ 表示适用于 Windows(64位) + Python3.6 环境的 curses2.2 版本 2. 在 whl 包目录下运行命令行。 **_> pip install <对应包名>.whl_** 3. 如果还不成功,尝试安装 wheel。 **_> pip install wheel_**