Skip to content

Example implementations of tokens to represent unique assets, such as collectibles or deeds, using the NEP-171 spec (similar to ERC-721)

License

MIT, Apache-2.0 licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE-APACHE
Notifications You must be signed in to change notification settings

Lev-Stambler/3D-Turtles

 
 

Repository files navigation

3D Turtles

3D Turtles is an exploration into combining art, mathematics, and blockchain! So, what is a 3D turtle? First imagine orienting a turtle in 3 dimensional space. We then tell the turtle to move according to a set of rules — "movement rules" if you will.

These rules depend mainly on 2 fractions. Lets take 13/99 and 21/99 for example. 13/99 = 0.131313... and 21/99 = 0.21212121.... The rules are as follows:

For each time step that the turtle moves, determine the direction to move the turtle towards by looking at the current digit of 13/99 and 21/99. So, for the first time step, we look at the first digits of 0.131313... and 0.212121... to get "1" and "2". Then, for the second time step, we use "3" and "1" to generate the movement direction.

Why is this interesting?

  1. There are many visually stunning patterns which can be generated. See our curated list of shapes.
  2. There is complexity observed in the shapes drawn reveals some deep fundamental truths about our universe: incredible complexity can evolve from the simplest rules.
  3. The math behind whether a drawn patter "closes" (i.e. does not go on forever) or not is surprising and quite nice.

For details, interesting math, and fun open problems, see the paper. If you are interested in playing around and generating patterns, see the demo site. For the codebase see the Github Repository.

Inspiration

3D Turtles was inspired by "Plotting Pi and Searching for Mona Lisa", a video released by the fantastic YouTube channel, Numberphile. Essentially, the video explores using Turtle graphic to explore visualizations of rational numbers (e.g. 1/13) and irrational numbers (e.g. Pi).

Important notes

Not all minted shapes are necessarily unique. Minting simple duplicate shapes (ones found very easily, see page 11 of the paper) is not allowed by the smart contract. Still, duplicate shapes can be minted by finding fractions which lead to the turtle drawing the same shape (again, see page 11 of the paper).

About

Example implementations of tokens to represent unique assets, such as collectibles or deeds, using the NEP-171 spec (similar to ERC-721)

Resources

License

MIT, Apache-2.0 licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE-APACHE

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 71.7%
  • TeX 11.9%
  • Rust 7.7%
  • TypeScript 5.1%
  • Svelte 2.5%
  • Jupyter Notebook 0.7%
  • Other 0.4%