Five-Project Series

Python Minigames you own this product

prerequisites
basic Python • basic pandas • basic object-oriented programming • Jupyter Notebook
skills learned
control flow • software design • event listening • error handling, refactoring • algorithmic design
Jaya Moore
5 weeks · 6-8 hours per week average · INTERMEDIATE

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


In this series of liveProjects, you’ll build fun and entertaining minigames in Python. Stepping into the shoes of a new hire at a videogames company, you’ll work through five increasingly complex game projects that run on the command line. Not only will you create exciting projects to play with your friends, you’ll also get hands-on experience in professional software development. These projects are particularly relevant for those interested in a career in data science, as you’ll practice using Jupyter notebooks, pandas DataFrames, NumPy arrays, and more.

These projects are designed for learning purposes and are not complete, production-ready applications or solutions.

Game development instruction seems to be all about lighting and shading tutorials, but there's a wealth of basic coding skills that can best be taught through games.

David Moskowitz

here's what's included

Project 1 20 Questions

In this liveProject, you’ll use Python to create a command-line version of the classic guessing game 20 Questions. In your version of the game, the computer will have up to twenty chances to guess what animal the player is thinking of. You’ll use Jupyter notebooks to code your program and define functions that build a knowledge base in real time. Then, you’ll test and debug your code by playing against the computer.

Project 2 Nonogram

In this liveProject, you’ll use Python to build a nonogram puzzle generator that creates a printable puzzle pack from the command line. Nonograms are puzzles that reveal an image on a grid, based on numbers along the grid’s edge. Most programmatic implementations solve nonograms, but yours will generate them. To do this, you’ll code your script, relying on two essential data structures: the pandas DataFrame and the NumPy array. You’ll also experiment with image libraries including Pillow and pixelate, and gain a better understanding of basic image processing concepts.

Project 3 Cryptogram

In this liveProject, you’ll use Python to build a command-line game that produces a cryptogram to decode. You’ll build a simple web scraper to pull data from a quotation website, then generate an encoded puzzle for the player to decipher. You’ll interact with a web server to create your game, using the Python library BeautifulSoup.

Project 4 Slap

In this liveProject, you’ll build a two-player version of the card game Slap that can be played from the command line. To code this game, you’ll use algorithms, object-oriented programming concepts, and event listeners. You’ll gain hands-on experience importing modules, creating classes, defining methods, and using other principles of object-oriented programming.

Project 5 Escape Room

In this liveProject, you’ll use Python to build a simple text-based escape room game to help enhance the experience of a real-world escape game. This project involves following all the steps in a software development process, from reviewing your client’s given requirements, to designing, building, and testing your code. You’ll gain experience operating within a set of requirements and refactoring your code to optimize class definitions, tighten up functions, and make sure it’s Pythonic!

book resources

When you start each of the projects in this series, you'll get full access to the following book for 90 days.

choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • Python Minigames project for free

project author

Jaya Moore
Jaya Moore is a developer enablement professional with a specialization in developer education. She has extensive experience serving organizations across the world as a technical writer, web developer, and data scientist. She has been learning and writing about Python for over six years.

Prerequisites

This liveProject is for intermediate-level Python practitioners who are comfortable with the basics of Python, object-oriented programming, and the general stages of the software development process. You’ll need a strong understanding of how a program is structured and the patience to tweak and test your code until it achieves the desired functionality.


TOOLS
  • Basic Python syntax
  • Pandas and NumPy
  • Jupyter Notebook
TECHNIQUES
  • Operating on strings, files, data structures
  • Object-oriented programming
  • Control flow and conditional logic
  • Installing and importing Python modules
  • Running a Python script from the command line
  • Handling errors and debugging code

you will learn

In this series of liveProjects, you’ll learn important skills for developing software and building command-line scripts with Python. These are real-world software development skills that can be scaled up for professional projects.


  • Using pandas to create and manage a dataset
  • Sanitizing user input
  • Manipulating image files
  • Encrypting and decrypting character data
  • Scraping information from a website
  • Understanding a requirements file
  • Designing software and crafting algorithms
  • Making assertions, catching errors, and raising exceptions
  • Implementing an event listener and handling keypresses
  • Styling a DataFrame and exporting a table as an image
  • Converting between various data structures (CSV files, DataFrame, arrays)
  • Refactoring a codebase and modularizing functionality

features

Self-paced
You choose the schedule and decide how much time to invest as you build your project.
Project roadmap
Each project is divided into several achievable steps.
Get Help
While within the liveProject platform, get help from other participants and our expert mentors.
Compare with others
For each step, compare your deliverable to the solutions by the author and other participants.
book resources
Get full access to select books for 90 days. Permanent access to excerpts from Manning products are also included, as well as references to other resources.