Ceci est une ancienne révision du document !
Learn to Program With Minecraft: transform your world with the power of Python Craig Richardson No Starch Pres:s ISBN:978-1-59327-607-6
Learn to Program With Minecraft is designed to teach kids (and/or parents) how to program using Python to do some really tedious things within the game Minecraft. I must admit, I've heard about Minecraft for years, but have never tried it. Many friends have kids who play Minecraft, and this book would be an excellent choice for those who want to not only learn to program OR (and here's the kicker) want to automate many tasks in Minecraft.
This book is for Windows or OS X as well as the Raspberry Pi, and makes the assumption that the reader already knows how to play Minecraft. As I said above, I've never played the game, so the only version I had was on the Raspberry Pi. I was totally lost from the “git-go”. So I went to raspberrypi.org, typed 'Minecraft' into the search box, and eventually found the “Minecraft for Newbies” tutorial. That got me going, so now the book started to make sense to me. Just between you, me, and the wall, it was fun trying the various projects and tasks. I'm not a gamer, but I can see the attraction and understand why so many kids play the game.
I don't remember ever seeing a note that you need to be familiar with Minecraft; however, there is a short statement on the back of the book that (and I paraphrase here) even if you are a newbie, you will “see Minecraft in a whole new light…”, which is very true, but I feel the author should have pointed this out from the start.
All in all, the book does what it promises in a clear and proper manner. If you take a look at the Table of Contents (right), you will quickly see that most all of the major Python programming concepts for beginners are covered with creative introductions. My favourite is 'Chapter 9: Hitting things with Lists and Dictionaries'.
Table of Contents
Chapter 1: Setting up for Your Adventure Chapter 2: Teleporting with Variables Chapter 3: Building Quickly and Travelling Far with Math Chapter 4: Chatting with Strings Chapter 5: Figuring Out What's True and False with Boolean Chapter 6: Making Mini-Games with if Statements Chapter 7: Dance Parties and Flower Parades with while Loops Chapter 8: Functions Give You Superpowers Chapter 9: Hitting Things with Lists and Dictionaries Chapter 10: Minecraft Magic with for Loops Chapter 11: Saving and Loading Buildings with Files and Modules Chapter 12: Getting Classy with Object-Oriented Programming Afterward Block ID Cheat Sheet Index