Skip to main content

Free Games

Project description

Free Python Games is an Apache2 licensed collection of free Python games intended for education and fun. The games are written in simple Python code and designed for experimentation and changes. Simplified versions of several classic arcade games are included.

Python is one of the top-five most popular programming languages in the world and available for free from Python.org. Python includes an extensive Standard Library distributed with your installation. The Standard Library has a module called Turtle which is a popular way to introduce programming to kids. Turtle was part of the original Logo programming language developed by Wally Feurzig and Seymour Papert in 1966. All of the games in Free Python Games are implemented using Python and its Turtle module.

Starting in 2012, Free Python Games began as an after school program to teach programming to inner-city youth. The goal was to have fun as much as it was to learn. Since then the games have been improved and used in a variety of settings ranging from classrooms to summer day-camps.

The games run anywhere Python can be installed which includes desktop computers running Windows, Mac OS, or Linux and older or low-power hardware such as the Raspberry Pi. Kids across the United States in grades 6th-12th have enjoyed learning about topics such as encryption and projectile motion through games.

Each game is entirely independent from the others and includes comments along with a list of exercises to work through with students. Creativity and flexibility is important. There is no right or wrong way to implement a new feature or behavior! You never know which games students will engage with best.

Testimonials

“I love Free Python Games because the games are fun and they’re easy to understand and change. I like making my own games now.”

– Luke Martin, Student

“Free Python Games inspired and introduced a new hobby to our son. Thank you so much for exposing him to coding. He is having so much fun!”

– Mary Lai, Parent

“Free Python Games are great because they really engage students and let them learn at their own pace.”

– Rick Schertle, Teacher, Steindorf STEAM School

“Free Python Games combines play and learning in a flexible environment that reduces the stress of a difficult topic like programming.”

– Brett Bymaster, Youth Pastor, The River Church Community

“Free Python Games is great for students, is highly organized and flexible, and seeks to unleash inquiry and understanding.”

– Terri Furton, Principal, Downtown College Prep

Features

  • Fun to play!

  • Simple Python code

  • Easy to install

  • Designed for education

  • Depends only on the Python Standard Library

  • Used in hundreds of hours of classroom instruction

  • Fully Documented

  • 100% Test Coverage

  • Developed on Python 3.10

  • Tested on CPython 3.6, 3.7, 3.8, 3.9, 3.10

  • Tested on Linux, Mac OS X, and Windows

  • Tested using GitHub Actions

https://github.com/grantjenks/free-python-games/workflows/integration/badge.svg

Quickstart

Installing Free Python Games is simple with pip:

$ python3 -m pip install freegames

Free Python Games supports a command-line interface (CLI). Help for the CLI is available using:

$ python3 -m freegames --help

The CLI supports three commands: list, copy, and show. For a list of all games run:

$ python3 -m freegames list

Any of the listed games may be played by executing the Python module from the command-line. To reference the Python module, combine “freegames” with the name of the game. For example, to play the “snake” game run:

$ python3 -m freegames.snake

Games can be modified by copying their source code. The copy command will create a Python file in your local directory which you can edit. For example, to copy and play the “snake” game run:

$ python3 -m freegames copy snake
$ python3 snake.py

Python includes a built-in text editor named IDLE which can also execute Python code. To launch the editor and make changes to the “snake” game run:

$ python3 -m idlelib.idle snake.py

You can also access documentation in the interpreter with Python’s built-in help function:

>>> import freegames
>>> help(freegames)

Free Games

Paint

Paint – draw lines and shapes on the screen. Click to mark the start of a shape and click again to mark its end. Different shapes and colors can be selected using the keyboard.

Paint Free Python Game

Snake

Snake – classic arcade game. Use the arrow keys to navigate and eat the green food. Each time the food is consumed, the snake grows one segment longer. Avoid eating yourself or going out of bounds!

Snake Free Python Game

Pacman

Pacman – classic arcade game. Use the arrow keys to navigate and eat all the white food. Watch out for red ghosts that roam the maze.

Pacman Free Python Game

Cannon

Cannon – projectile motion. Click the screen to fire your cannnonball. The cannonball pops blue balloons in its path. Pop all the balloons before they can cross the screen.

Cannon Free Python Game

Connect

Connect – Connect 4 game. Click a row to drop a disc. The first player to connect four discs vertically, horizontally, or diagonally wins!

Connect 4 Free Python Game

Flappy

Flappy – Flappy-bird inspired game. Click the screen to flap your wings. Watch out for black ravens as you fly across the screen.

Flappy Bird Free Python Game

Memory

Memory – puzzle game of number pairs. Click a tile to reveal a number. Match two numbers and the tiles will disappear to reveal an image.

Memory Free Python Game

Pong

Pong – classic arcade game. Use the keyboard to move your paddle up and down. The first player to miss the ball loses.

Pong Free Python Game

Simon Says

Simon Says – classic memory puzzle game. Click the screen to start. Watch the pattern and then click the tiles in the same order. Each time you get the sequence right the pattern gets one step longer.

Simon Says Free Python Game

Tic Tac Toe

Tic Tac Toe – classic game. Click the screen to place an X or O. Connect three in a row and you win!

Tic Tac Toe Free Python Game

Tiles

Tiles – puzzle game of sliding numbers into place. Click a tile adjacent to the empty square to swap positions. Can you make the tiles count one to fifteen from left to right and bottom to top?

Tiles Free Python Game

Tron

Tron – classic arcade game. Use the keyboard to change the direction of your Tron player. Avoid touching the line drawn by your opponent.

Tron Free Python Game

Life

Life – Conway’s Game of Life. The classic, zero-player, cellular automation created in 1970 by John Conway.

Game of Life Free Python Game

Maze

Maze – move from one side to another. Inspired by A Universe in One Line of Code with 10 PRINT. Tap the screen to trace a path from one side to another.

Maze Free Python Game

Fidget

Fidget – fidget spinner inspired animation. Click the screen to accelerate the fidget spinner.

Fidget Spinner Free Python Game

User Guide

For those wanting more details, this part of the documentation describes curriculum, API, and development.

References

Free Python Games License

Copyright 2017-2022 Grant Jenks

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

freegames-2.4.0.tar.gz (108.2 kB view details)

Uploaded Source

Built Distribution

freegames-2.4.0-py3-none-any.whl (109.0 kB view details)

Uploaded Python 3

File details

Details for the file freegames-2.4.0.tar.gz.

File metadata

  • Download URL: freegames-2.4.0.tar.gz
  • Upload date:
  • Size: 108.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.1

File hashes

Hashes for freegames-2.4.0.tar.gz
Algorithm Hash digest
SHA256 08697b80a910cac97719432eb79a7619d08f47c1e7cb59f23ee36ac460b75c65
MD5 b6be9d23ce499f36289f6410e21420f2
BLAKE2b-256 ced689f26e36c5eebbab94508b7a2bc3f380650c479800e8c6558e842db7b2cb

See more details on using hashes here.

File details

Details for the file freegames-2.4.0-py3-none-any.whl.

File metadata

  • Download URL: freegames-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 109.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.1

File hashes

Hashes for freegames-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e2391ba96996d08b4c3141aa6ab489e6785f6202a80b778552e38aefab03754b
MD5 a70d41fd741ae776670b137c7e428959
BLAKE2b-256 62f5643ebe95085f1fea2d8e4597259d8c56a920df1ed10dcfb65d7b80caff4f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page