Coding with Minecraft: Learn to Code by Programming Robots in Minecraft!

简介:
动手介绍编码,教你如何编程机器人在你喜欢的游戏中做很酷的事情-Minecraft!这本书采用了机器人 “乌龟” 方法,并将其扩展到Minecraft的3D交互式世界。你已经开采了钻石,制作了几十个工具,建造了各种各样的结构 -- 但是如果你可以编程机器人在很短的时间内为你完成所有这些事情,会怎么样?在本书中,您将使用Lua (专业游戏开发人员使用的编程语言) 创建虚拟机器人军队。分步编码项目将向您展示如何编写自动挖掘地雷,收集材料,制作物品以及构建您可以想象的任何内容的程序。在此过程中,您将探索关键的计算机科学概念,如数据类型,函数,变量等。您将学习如何制作游戏:
通过流量控制做出明智决策的程序机器人重用代码,以便您的机器人可以耕种您想要的任何农作物,包括小麦,甘蔗甚至仙人掌!对产生无限建筑用品的工厂进行编程设计用于创建任何大小的墙壁和建筑物的算法自己编码一个镐摆动的机器人伐木工人!创建一个机器人,用楼梯挖掘矿井,这样你就可以安全地探索
英文简介:
A hands-on introduction to coding that teaches you how to program bots to do cool things in the game you love - Minecraft! This book takes the robotic "turtle" method, and extends it to the 3D, interactive world of Minecraft.
You've mined for diamonds, crafted dozens of tools, and built all sorts of structures - but what if you could program robots to do all of that for you in a fraction of the time?
In this book, you'll create a virtual robot army with Lua, a programming language used by professional game developers. Step-by-step coding projects will show you how to write programs that automatically dig mines, collect materials, craft items, and build anything that you can imagine. Along the way, you'll explore key computer science concepts like data types, functions, variables, and more.
You'll learn to make games like:
Program robots that make smart decisions with flow controlReuse code so that your robots can farm any crop you want, including wheat, sugar cane, and even cacti!Program a factory that generates infinite building suppliesDesign an algorithm for creating walls and buildings of any sizeCode yourself a pickaxe-swinging robotic lumberjack!Create a robot that digs mine shafts with stairs so you can explore safely
- 书名
- Coding with Minecraft: Learn to Code by Programming Robots in Minecraft!
- 译名
- 使用 Minecraft 进行编码:通过在 Minecraft 中编程机器人学习编码!
- 语言
- 英语
- 年份
- 2016
- 页数
- 322页
- 大小
- 13.06 MB
- 下载
Coding with Minecraft: Learn to Code by Programming Robots in Minecraft!.pdf
- 密码
- 65536
最后更新:2025-04-12 23:58:00