Coding with Minecraft: Build Taller, Farm Faster, Mine Deeper, and Automate the Boring Stuff

Al Sweigart

  • 出版商: No Starch Press
  • 出版日期: 2018-05-29
  • 售價: $1,250
  • 貴賓價: 9.5$1,188
  • 語言: 英文
  • 頁數: 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.

商品描述(中文翻譯)

《Coding with Minecraft®》是一本實踐性的編程入門書,教你如何在你喜愛的遊戲《Minecraft》中編寫機器人來完成酷炫的任務!本書將機器人的「烏龜」方法擴展到《Minecraft》這個立體、互動的世界中。

你已經挖掘了鑽石,製作了數十種工具,建造了各種結構,但如果你能夠編寫機器人以更短的時間完成這些任務,該有多好呢?

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

學習如何:
- 編寫能夠做出明智決策的機器人,並控制其流程
- 重複使用代碼,使你的機器人能夠種植任何作物,包括小麥、甘蔗,甚至仙人掌!
- 編寫一個能夠生成無限建築材料的工廠
- 設計一個用於建造任意大小牆壁和建築的算法
- 編寫一個揮舞鎬的機器人伐木工!
- 創建一個挖掘礦井並帶有樓梯的機器人,以便你可以安全地進行探索

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