商品描述
Learn programming with Python by creating a text adventure. This book will teach you the fundamentals of programming, how to organize code, and some coding best practices. By the end of the book, you will have a working game that you can play or show off to friends. You will also be able to change the game and make it your own by writing a different story line, including new items, creating new characters, and more.
Make your own Python Text Adventure offers a structured approach to learning Python that teaches the fundamentals of the language, while also guiding the development of the customizable game. The first half of the book introduces programming concepts and Python syntax by building the basic structure of the game. You'll also apply the new concepts in homework questions (with solutions if you get stuck!) that follow each chapter. The second half of the book will shift the focus to adding features to your game and making it more entertaining for the player.
Python is often recommended as a first programming language for beginners, and for good reason. Whether you've just decided to learn programming or you've struggled before with vague tutorials, this book will help you get started.
What You'll Learn
- Install Python and set up a workspace
- Master programming basics and best practices including functions, lists, loops and objects
- Create an interactive adventure game with a customizable world
Who This Book Is For
People who have never programmed before or for novice programmers starting out with Python.
商品描述(中文翻譯)
學習使用 Python 創建文字冒險遊戲。本書將教你程式設計的基本原理、如何組織程式碼以及一些編碼最佳實踐。在本書結束時,你將擁有一個可以玩或展示給朋友的可運行遊戲。你還可以通過編寫不同的故事情節、添加新物品、創建新角色等方式來改變遊戲,使其成為你自己的作品。
《製作你自己的 Python 文字冒險遊戲》提供了一種結構化的學習 Python 的方法,教導語言的基本原理,同時指導可自定義遊戲的開發。本書的前半部分通過構建遊戲的基本結構來介紹程式設計概念和 Python 語法。你還將在每章後的作業問題中應用新概念(如果遇到困難,還有解答!)。本書的後半部分將重點放在為你的遊戲添加功能,使其對玩家更具娛樂性。
Python 通常被推薦為初學者的第一門程式語言,這是有充分理由的。無論你是剛決定學習程式設計,還是之前在模糊的教程中掙扎過,本書都將幫助你入門。
你將學到的內容:
- 安裝 Python 並設置工作區
- 掌握程式設計基礎和最佳實踐,包括函數、列表、迴圈和物件
- 創建一個具有可自定義世界的互動冒險遊戲
本書適合對象:
從未編程過的人或初學者程式設計師,特別是剛開始學習 Python 的人。