Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
708 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
Oops, something went wrong.