Coding with Minecraft: Build Taller, Farm Faster, Mine Deeper, and Automate the Boring Stuff
暫譯: 用 Minecraft 編程:建造更高、農作更快、挖掘更深,並自動化無聊的工作

Al Sweigart

  • 出版商: No Starch Press
  • 出版日期: 2018-05-29
  • 售價: $1,270
  • 貴賓價: 9.5$1,207
  • 語言: 英文
  • 頁數: 256
  • 裝訂: Paperback
  • ISBN: 1593278535
  • ISBN-13: 9781593278533
  • 相關分類: ARM
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

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 Coding with Minecraft®, 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.

Learn how to:
- Program robots that make smart decisions with flow control
- Reuse 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 supplies
- Design an algorithm for creating walls and buildings of any size
- Code yourself a pickaxe-swinging robotic lumberjack!
- Create a robot that digs mine shafts with stairs so you can explore safely

Bonus activities in each chapter will help you take your coding skills to the next level. By the end of the book, you'll understand how powerful coding can be and have plenty of robots at your beck and call.

商品描述(中文翻譯)

這是一本實作導向的程式設計入門書,教你如何編寫機器人來在你喜愛的遊戲中做有趣的事情——Minecraft!本書採用機器人「海龜」方法,並將其擴展到Minecraft的3D互動世界。

你已經挖掘過鑽石,製作過數十種工具,並建造過各種結構——但如果你可以編程讓機器人為你完成所有這些,並且只需花費一小部分時間呢?

Coding with Minecraft®中,你將使用Lua這種專業遊戲開發者使用的程式語言來創建一支虛擬機器人軍隊。逐步的編程專案將向你展示如何編寫自動挖礦、收集材料、製作物品和建造任何你能想像的東西的程式。在這個過程中,你將探索關鍵的計算機科學概念,如資料類型、函數、變數等。

學習如何:
- 編程讓機器人做出智能決策,使用流程控制
- 重用程式碼,讓你的機器人可以種植任何你想要的作物,包括小麥、甘蔗,甚至仙人掌!
- 編程一個生成無限建材的工廠
- 設計一個可以創建任何大小牆壁和建築的演算法
- 為自己編寫一個揮舞鎬子的機器人伐木工!
- 創建一個可以挖掘帶有樓梯的礦井的機器人,讓你可以安全探索

每章的額外活動將幫助你提升編程技能。到書的結尾,你將了解編程的強大之處,並擁有許多隨時可用的機器人。