New Game Source Code: Four in a Row
Posted by Al Sweigart in pygame
I've made a Connect Four AI in Python with Pygame.
Writings from the author of Automate the Boring Stuff.
Posted by Al Sweigart in pygame
I've made a Connect Four AI in Python with Pygame.
Posted by Al Sweigart in pygame
I wanted to share this link to a great site with some simple Pygame examples:
There is also a textbook draft called "Introduction to Computer Science Using Python and Pygame" by Paul Vincent Craven.
Posted by Al Sweigart in python
"MooseGesture" is a Python module that implements a basic mouse gesture recognition system. It can identify gestures made up of strokes in the eight cardinal and diagonal directions.
Posted by Al Sweigart in pygame
I've compiled a list of free graphics and sound files that you can use in your games. The chapter on using graphics and sound files with the Pygame library is in Chapter 19 of the "Invent with Python" book.
Posted by Al Sweigart in pygame
Made a new game with Pygame. It's called "Squirrel Eat Squirrel", where you move your squirrel around the screen eating the smaller squirrels and avoiding the larger ones. The more squirrels you eat, the larger you grow.
Posted by Al Sweigart in pygame
I have a text version of a Connect Four clone done. The AI for it looks ahead two moves, which makes it fairly impossible to beat unless you concentrate.
Posted by Al Sweigart in news
I'd just like to announce that "Invent Your Own Computer Games with Python" has just sold its 1000th hard copy since it's gone on sale last May.
Posted by Al Sweigart in programming
Here's a cipher disk that you can print and cutout to help you manually implement the Caesar Cipher. Simply download and printout the PDF and cut out the two circles and place them on top of each other.
Posted by Al Sweigart in pygame
Welcome to the Code Comments Tutorial for Flippy, an Othello clone. Code Comments is a series of simple games with detailed comments in the source code, so you can see how the game works.
Posted by Al Sweigart in news
Posted by Al Sweigart in pygame
Welcome to the Code Comments Tutorial for Tetromino, a Tetris clone. Code Comments is a series of simple games with detailed comments in the source code, so you can see how the game works.
Posted by Al Sweigart in pygame
Welcome to the Code Comments Tutorial for Snakey, a Nibbles clone. Code Comments is a series of simple games with detailed comments in the source code, so you can see how the game works.
Posted by Al Sweigart in pygame
Welcome to the Code Comments Tutorial for Slide Puzzle. Code Comments is a series of simple games with detailed comments in the source code, so you can see how the game works.
Posted by Al Sweigart in pygame
Welcome to the Code Comments Tutorial for Simulate (A "Simon" clone.) Code Comments is a series of simple games with detailed comments in the source code, so you can see how the game works.
Posted by Al Sweigart in pygame
Welcome to the Code Comments Tutorial for Memory. Code Comments is a series of simple games with detailed comments in the source code, so you can see how the game works.
Posted by Al Sweigart in programming
Posted by Al Sweigart in pygame
Welcome to the Code Comments Tutorial for Ink Spill. Code Comments is a series of simple games with detailed comments in the source code, so you can see how the game works.
Posted by Al Sweigart in pygame
I've scoured the web for some decent tutorials for Pygame, one of the best game engines for Python out there. Here's what I've found, ordered by (in my opinion) quality.
Posted by Al Sweigart in pygame
Source code: gorillas.py
An entire generation of people remember the Gorilla.BAS game that came with Qbasic, where gorillas on top of buildings threw exploding bananas at each other. This is a Python remake of that game using the Pygame game engine, and is fairly heavily commented so you can explore the source.
Posted by Al Sweigart in news
I'm currently doing a very slow and thorough read through of the book to weed out the last of the typos, errors, and ambiguous statements in the book.