DApp: My Sprout Farm!

Group member: Wei-zhen Tsai, Chia-ting Liu, Hsing-wen Hsu
Project Site
centered image

Introduction

    This is a decentralised sprout growing game created with Ethereum smart contract and NodeJS We proposed a sprout farming simulating game DApp. Players start the game with $1000 and a random bean that costs $300. Players should try to plug the planted sprout at the moment when its price peaks. This exact moment and price differ from sprouts to sprouts.
    Besides planting random beans, players can also get beans from the existing sprouts by letting them grow into beanstalks and produce new beans. In addition, grown-up beanstalks also have pollens that can pollinize one another. By these means, the players may alter the traits of newer generations as they wish.

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.

Video Demo