Skip to content

sdwalsh/turmites

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turmites

Turmites is a small Go program that runs one more more turmites through a mound.

Mound library located here

Every turmite is a 2d turing machine, one of the most famous turmites being Langton's Ant (a four state turing machine).

turmite moving around a mound

How do I get set up?

  • Linux/Unix-like OS required
  • bash, rm, ffmpeg required for func mound.BatchImages(...)

Things to consider

  • Currently every frame is encoded into png files into a temporary directory. This takes a long time!
  • mound.BatchImages(...) currently handles a max of 999,999 frames
  • Want to convert .mp4 to .gif? Consider this Stack Overflow post
  • API is not stable and subject to change

TODO

  • Modify mound.BatchImages(...) to start generating pngs at a specific step (currently steps from frame 1 -> frame 999,999)
  • Create function to merge various .mp4s
  • Allow skipping of frames
  • Allow user to choose output type (currently only allows .mp4)
  • Consider pushing png encoding to different cores (currently the bottleneck)

Who do I talk to?

Contributing

Feel free to fork this repository and send pull requests!

License

Copyright 2017 Sean Walsh

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Turmites: An exportation of Langton's ant

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages