Skip to content

soulin/threadworms

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

threadworms

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published