Skip to content

Instantly share code, notes, and snippets.

@panda850819
Created April 20, 2019 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save panda850819/31a4581701fe370ef0e4f7d136b7518b to your computer and use it in GitHub Desktop.
Save panda850819/31a4581701fe370ef0e4f7d136b7518b to your computer and use it in GitHub Desktop.
Markdium-CryptoZombie
pragma solidity ^0.4.25;
contract ZombieFactory {
uint dnaDigits = 16;
uint dnaModulus = 10 ** dnaDigits;
struct Zombie {
string name;
uint dna;
}
Zombie[] public zombies;
// Zombie is a struct and we will put zombies to it .
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment