Invent Your Own Computer Games With Python, 4th Edition

Invent Your Own Computer Games With Python, 4th Edition

Table of Contents

Best Computer Games Free Download

Invent Your Own Computer Games with Python teaches you how to program in the Python language. Each chapter gives you the complete source code for a new game, and then teaches the programming concepts from the examples. Games include Guess the Number, Hangman, Tic Tac Toe, and Reversi.

Pc Games

  1. Introduction
    1. How to Use This Book
  2. Chapter 1: The Interactive Shell
    1. Some Simple Math
  3. Chapter 2: Writing Programs
    1. Writing Programs in IDLE’s File Editor
    2. How the Hello World Program Works
  4. Chapter 3: Guess the Number
    1. Flow Control Statements
    2. The Boolean Data Type
  5. Chapter 4: A Joke-Telling Program
  6. Chapter 5: Dragon Realm
    1. Functions in Dragon Realm
    2. Boolean Operators
    3. The Game Loop
  7. Chapter 6: Using the Debugger
    1. The Debugger
  8. Chapter 7: Designing Hangman with Flowcharts
    1. Designing a Program with a Flowchart
  9. Chapter 8: Writing the Hangman Code
    1. The Lists Data Type
    2. Calling Methods
    3. Displaying the Board to the Player
    4. Getting the Player’s Guess
    5. The Game Loop
  10. Chapter 9: Extending Hangman
    1. The Dictionary Data Type
  11. Chapter 10: Tic-Tac-Toe
    1. Designing the Program
    2. Placing a Mark on the Board
    3. Creating the Computer’s AI
    4. The Game Loop
  12. Chapter 11: The Bagels Deduction Game
    1. Shuffling a Unique Set of Digits
    2. The Game Loop
  13. Chapter 12: The Cartesian Coordinate System
    1. Math Tricks
  14. Chapter 13: Sonar Treasure Hunt
    1. Drawing the Game Board
    2. Placing a Move on the Board
    3. The Game Loop
  15. Chapter 14: Caesar Cipher
    1. Encrypting or Decrypting the Message
  16. Chapter 15: The Reversegam Game
    1. The Game Board Data Structure
    2. Checking Whether a Move Is Valid
    3. Checking for Valid Coordinates
    4. Getting the Computer’s Move
    5. Starting the Game
  17. Chapter 16: Reversegam AI Simulation
    1. Making the Computer Play Against Itself
    2. Making the Computer Play Itself Several Times
    3. Comparing Different AI Algorithms
  18. Chapter 17: Creating Graphics
    1. Setting Up the pygame Window
    2. Writing Text on the pygame Window
    3. pygame’s Drawing Functions
    4. Events and the Game Loop
  19. Chapter 18: Animating Graphics
    1. Setting Up the Constant Variables
    2. The Game Loop
  20. Chapter 19: Collision Detection
    1. Handling Events
    2. Moving the Player Around the Window
  21. Chapter 20: Using Sounds and Images
    1. Setting Up the Window and the Data Structure
    2. Setting Up the Music and Sounds
  22. Chapter 21: A Dodger Game with Sounds and Images
    1. Defining Functions
    2. The Game Loop
    3. Drawing the Window