V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
HFX3389
V2EX  ›  Python

Python 超级简单小游戏事例,求推荐

  •  
  •   HFX3389 · 2017-11-01 16:56:26 +08:00 · 3489 次点击
    这是一个创建于 2329 天前的主题,其中的信息可能已经有所发展或是发生改变。

    在字符界面运行的,一些有趣的,动脑子的小游戏

    比如说猜谜语之类的

    主要给刚学习的小朋友激起兴趣

    求推荐几个

    13 条回复    2017-11-02 06:24:21 +08:00
    linw1995
        1
    linw1995  
       2017-11-01 17:20:47 +08:00
    2048
    devrsi0n
        2
    devrsi0n  
       2017-11-01 17:26:30 +08:00
    用 js 写不是更简单点,自荐下: https://github.com/devrsi0n/React-2048-game
    prolic
        3
    prolic  
       2017-11-01 17:33:04 +08:00
    上 pygame 写 2048 呗,命令行界面小朋友真会有兴趣么。。
    wplct
        4
    wplct  
       2017-11-01 17:35:38 +08:00
    其实教小朋友真的 js 比较好
    xrlin
        5
    xrlin  
       2017-11-01 17:36:48 +08:00 via iPhone
    Pygame
    xrlin
        6
    xrlin  
       2017-11-01 17:37:37 +08:00 via iPhone
    字符界面?文字游戏可以
    xavierskip
        7
    xavierskip  
       2017-11-01 19:27:05 +08:00   ❤️ 6
    干嘛用的?自己玩还是学习源码

    给你一个贪吃蛇

    https://gist.github.com/xavierskip/8aa410bbf48a9f6b163c
    gumusu
        8
    gumusu  
       2017-11-01 22:52:24 +08:00 via iPhone
    @devrsi0n 手机端不灵敏,有时候需要划好多次才能动,差评😂
    Ehco1996
        9
    Ehco1996  
       2017-11-01 22:53:21 +08:00 via iPhone
    我一直想学 pygame 写个超级玛丽

    不知道难度怎么样
    devrsi0n
        10
    devrsi0n  
       2017-11-01 23:28:54 +08:00 via Android
    @gumusu 还需要优化滑动检测逻辑😂
    Sanko
        11
    Sanko  
       2017-11-01 23:58:23 +08:00 via Android
    猜数字
    abcyuxue123
        12
    abcyuxue123  
       2017-11-02 02:53:28 +08:00   ❤️ 2
    推荐这本书
    https://inventwithpython.com/chapters/

    里面有比如猜数字,tic-tac-toe,牌匹配

    @Ehco1996 超级玛丽送你 https://github.com/justinmeister/Mario-Level-1
    Ehco1996
        13
    Ehco1996  
       2017-11-02 06:24:21 +08:00 via iPhone
    @abcyuxue123
    太感谢了!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5449 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 03:45 · PVG 11:45 · LAX 20:45 · JFK 23:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.