Invent Your Own Computer Games with Python will teach you how to make computer games using the popular Python programming language—even if you’ve never programmed before! Begin by building classic games like Hangman, Guess the Number, and Tic-Tac-Toe, and then work your way up to more advanced games, like a text-based treasure hunting game and an animated collision-dodging game with sound effects. Along the way, you’ll learn key programming and math concepts that will help you take your game programming to the next level. Learn how to: –Combine loops, variables, and flow control statements into real working programs –Choose the right data structures for the job, such as lists, dictionaries, and tuples –Add graphics and animation to your games with the pygame module –Handle keyboard and mouse input –Program simple artificial intelligence so you can play against the computer –Use cryptography to convert text messages into secret code –Debug your programs and find common errors As you work through each game, you’ll build a solid foundation in Python and an understanding of computer science fundamentals. What new game will you create with the power of Python? The projects in this book are compatible with Python 3.
ترجمه فارسی (ترجمه ماشینی)
بازی های رایانه ای خود را با پایتون اختراع کنید به شما یاد می دهد که چگونه با استفاده از زبان برنامه نویسی محبوب پایتون بازی های رایانه ای بسازید – حتی اگر قبلاً هرگز برنامه نویسی نکرده اید! با ساختن بازیهای کلاسیک مانند Hangman، Guess the Number و Tic-Tac-Toe شروع کنید و سپس به سمت بازیهای پیشرفتهتر بروید، مانند یک بازی گنجیابی مبتنی بر متن و یک بازی متحرک فرار از برخورد با جلوههای صوتی. در طول مسیر، مفاهیم کلیدی برنامه نویسی و ریاضی را یاد خواهید گرفت که به شما کمک می کند برنامه نویسی بازی خود را به سطح بعدی ببرید. بیاموزید که چگونه: -حلقه ها، متغیرها و عبارات کنترل جریان را در برنامه های کاری واقعی ترکیب کنید – ساختارهای داده ای مناسب را برای کار انتخاب کنید، مانند لیست ها، فرهنگ لغت ها و تاپل ها – اضافه کردن گرافیک و انیمیشن به بازی های خود با ماژول pygame – Handle ورودی صفحهکلید و ماوس – هوش مصنوعی ساده را برنامهریزی کنید تا بتوانید در برابر رایانه بازی کنید – از رمزنگاری برای تبدیل پیامهای متنی به کد مخفی استفاده کنید – برنامههای خود را اشکال زدایی کنید و خطاهای رایج را پیدا کنید همانطور که در هر بازی کار میکنید، پایه محکمی در پایتون خواهید ساخت. و درک اصول علوم کامپیوتر چه بازی جدیدی با قدرت پایتون خواهید ساخت؟ پروژه های این کتاب با پایتون 3 سازگار است.
نقد و بررسیها
هنوز بررسیای ثبت نشده است.