Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
asweigart committed Apr 18, 2013
1 parent b193bad commit 4551f86
Show file tree
Hide file tree
Showing 3 changed files with 708 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
@@ -1,4 +1,16 @@
threadworms
===========

A multithreaded programming demonstration in Python & Pygame using a "Nibbles" clone.
A multithreaded programming demonstration in Python & Pygame using a "Nibbles" clone.

This Python & Pygame script shows a simple window where "worms" of various
lengths and speed run around. The program demonstrates multithreaded programming
and using locks to make the code threadsafe (worms will never go through each
other.)

This code works with either Python 3 or Python 2. You need Pygame installed to
run it.

Uncomment the setGridSquares() function call to draw static squares on the map,
instead of having a completely open field. You can also try adjusting the
constants at the top of the file.

0 comments on commit 4551f86

Please sign in to comment.