
用 Python 编写自己的电脑游戏
Invent your Own Computer Games with Python
Al Sweigart · 初版 2009 年
36人推荐
37位读者提及
43次提及
为什么值得读
- 通过做游戏项目掌握编程
- 提供完全免费的在线阅读
- 语言浅显,适合亲子互动学习
Invent Your Own Computer Games with Python 教你如何使用 Python 进行编程。每一章都提供了一个新游戏的完整源代码,并通过示例讲解编程概念。书中涵盖的程序包括 Hangman、Tic Tac Toe、Reversi、Caesar Cipher、Guess the Number 和 Dragon Realm。后续章节则讲解如何使用流行的 Pygame 库制作 2D 图形游戏。你将学会如何:* 将循环、变量、输入/输出和流程控制语句组合成可运行的程序 * 使用列表、字典和元组等数据结构 * 调试程序
Hacker News 上怎么说
正在加载完整评论……
…如果她不感兴趣,你趁早彻底死心——这可是我的亲身经历)No Starch [1] 出版过一些教小孩子写代码的好书。如果你想要偏游戏方向的,可能会喜欢 Al Sweigart 写的《用 Python 制作你自己的电脑游戏(第 4 版)》[2] [1] https://nostarch.com/catalog/kids [2] https://nostarch.com/inventwithpython
…you can forget all about it if she doesn't -- speaking out of personal experience) No Starch [1] has some great books on teaching kids how to code. If you want something game centric you might like "Invent Your Own Computer Games with Python, 4th Edition" by Al Sweigart [2] [1] https://nostarch.com/catalog/kids [2] https://nostarch.com/inventwithpython
抱歉,但我没看出来这些怎么是给小孩的。“蒙特卡洛 Pi 估算器”?? 小孩会更喜欢的一些东西:https://inventwithpython.com/ http://www.amazon.com/Python-Kids-Playful-Introduction-Progr...
I'm sorry but I don't see how these are for kids. "Monte Carlo Pi Estimator" ?? Some stuff kids would enjoy more: https://inventwithpython.com/ http://www.amazon.com/Python-Kids-Playful-Introduction-Progr...
我让我 6 岁的女儿从 Scratch 开始。我觉得这能满足你儿子的需求。它非常视觉化,并且包含足够的控制结构,让你能做出真正的程序(游戏和媒体演示是它的强项。) http://scratch.mit.edu/ 现在她 8 岁了,对数学有了更好的理解,就转向了 http://inventwithpython.com/
I started my 6 year old daughter on Scratch. I think it will fill the bill for your son. It's very visual and includes enough control structures to allow you to make real programs (games and media presentations are its forte.) http://scratch.mit.edu/ Now that she's 8 and has a better understanding of math she's moved on to http://inventwithpython.com/
我孩子 13 岁。 他没主动要求学,是我建议作为一种可能的活动。我强调了他不必非要愿意学。过一阵子我们就会知道他是在试着讨好老爸还是真的想学。到目前为止,他喜欢这些新的、陌生的概念。 去年夏天我们做了一点。基于那次经验,我稍微调整了一下,部分是通过多教一些周边概念,比如……
My kid is 13. He didn't ask to learn, I suggested it as a possible activity. I stressed that he doesn't have to want to. We'll know whether he's trying to please his old man or not after awhile. So far he's liked the new and foreign concepts. We did a little bit last summer. Based on that experience I'm changing it up a little, in part by teaching a little more about surrounding concepts like th
我最近也有个想编程的孩子。他大约 12 岁。想编游戏,但在一本 DirectX 书里没走多远。 由于一些要求,我有几个选择给他: 1)容易安装,或者不需要安装很多东西 2)有一个一体化的游戏库 3)有某种社区围绕它 4)如果有本书就更好了
I recently had a kid that wanted to program as well. He's about 12. Wanted to program games, but didn't get very far in a directX book. I had a couple choices for him, due to some requirements: 1) Something easy to install or didn't have lots of things to install 2) Something with a all-in-one gaming library 3) Something with some sort of community around it. 4) It'd be nice if there was a book
我最近看到的另一本电子书是:http://inventwithpython.com/ 它通过构建基础电脑游戏来教 Python。一种有趣的学习方式。
Another ebook I recently came across is: http://inventwithpython.com/ It teaches python through building basic computer games. A fun way to learn.