The Early Worm eats the Bird

Bitcoin Worms launched as a PFP collection Self-Inscribed by the community on 10/10/2023

Just a worm, just a Wiggle, now a Roadmap!

 

Bitcoin Worms are a collection of Worms on the blockchain. They stem from my childrens picture book named "WormE and the Wishing Tree"

The Bitcoin Worms stand on their own, but as a holder your Bitcoin Worm entitles you the owner to a PDF E-Book of the picture book and any other titles under "Bitcoin Worms" 

Worm Generator

My worm maker will make you a 1 of 630,000 worm! The worm generator code provided ensures that it doesn't create duplicate worm images by using random selection from predefined arrays of backgrounds, bodies, eyes, mouths, and headgear. 

Make yours for fun below Season 1 of Bitcoin Worms is closed :)

Inscribed imaged will not be indexed at this time!

 .SVG Export generator beta testing (NO longer being indexed)

To see how it works scroll a little and press "generate" then save the scrambled looking file on your device, it will save as a browser link, right click and open in "notepad" and paste that code in the viewer to your right and you will see how your image file will be rendered on chain.

The generator is active by request but any inscriptions will NOT be currently indexed by BitcoinWorm™ 



Do not make any inscriptions, season 1 has ended, no more worms are being indexed, as was announced via Twitter during the free launch.

For more information or to ask questions please join our discord or follow us on Twitter. 

https://discord.gg/6j7XCPbTUJ

@BitcoinWorms

This is where you can view .SVG or .HTML as an image as it will appear on chain.

This is WildTangs image tool, show them some love too.

https://recursive.wildtangz.com/






Below you will find a break down of how this is done, you can also view the BitcoinWorm generator on-chain at inscription 35221295 https://ord.io/35221295  


Here's how it works:



The generation of unique worm images is achieved by using a Set called generatedWorms to keep track of the combinations that have been generated. Here's how it works: 

const generatedWorms = new Set();

while (!uniqueWormFound) {

  // ...

}

const wormCombination = `${randomBackground}-${randomBody}-${randomEye}-${randomMouth}-${randomHeadgear}`;


if (!generatedWorms.has(wormCombination)) {

  // This combination is unique

  // Add it to the set

  generatedWorms.add(wormCombination);

  uniqueWormFound = true; // Exit the loop

  // ...

}

So, essentially, the script keeps track of generated worm combinations using the Set data structure, ensuring that they are unique until the user leaves or refreshes the page.


Buy on Magic Eden

The Bitcoin Worms were born from the Children's Book "WormE and the Wishing Tree" available on Amazon and some high street retailers, and a free E-Book for ALL holders, if interested please fill the form below.