DApp: My Sprout Farm!
Introduction
Tools
- Ethereum Smart Contract
- NodeJS
Data Structure
Data Type | Description |
---|---|
DNA1 & DNA2 | uint256, use each bits as an indication fo the traits. The two DNAs are parallel. |
Pollen | uint256[], indicate the DNAs of the pollens which have pollenize the current beanstalk. |
Gene | A special struct which contains attributes such as height, growing speed, width, ... all of them are derived from DNA1 & DNA2. |