Skip to content

qaqmander/PythagorasTree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

PythagorasTree

Draw Pythagoras tree concurrently with turtle.

Use coroutine to simulate scheduler with rr algorithm because turtle doesn't support multithread.

Try

git clone [email protected]:qaqmander/PythagorasTree.git && cd PythagorasTree && python3 pyth_tree.py

To be improved...

Maybe each edge should cost same time in one step... But who cares?

Bad code style especially in generator definition because I haven't find good solution for it. It can't work if using traditional function to wrap yield obviously. Miss macro so much :(

About

Draw Pythagoras tree concurrently with turtle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages