8000 GitHub - anthonykozar/PatersonWorms: A JS implementation of Paterson's Worms
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

anthonykozar/PatersonWorms

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PatersonWorms

A JS implementation of Paterson's Worms. The C version also creates an svg file that can be used to compare to the JS version. Obviously, the C version is much faster than the JS version, but you can see the JS one happen in realtime. The JS version also allows you to see the worm grow, as old parts turn darker and the window grows to match the worm's size. Line width can also be customized.

The notation for the choices is borrowed from Martin Gardner's article on Paterson's worms. I learned that there are mutliple notations for these worms out there, but knowledge of the notation is not required to use this program. Be careful, as some of the worms are infinite in length and others are finite but with large (in the millions of steps) length.

Check out the JS implementation here

About

A JS implementation of Paterson's Worms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 52.3%
  • JavaScript 45.8%
  • Other 1.9%
0