GithubHelp home page GithubHelp logo

tama_solidity's Introduction

Tama

Smart Contract for a simple tamagochi app.

Tama Attributes

Screen Shot 2022-12-26 at 14 49 48

Market (Tama <> Price in ETH)

Screen Shot 2022-12-26 at 14 49 29

Tama Diary(History Log)

Screen Shot 2022-12-26 at 14 50 54

Features

Tama

  • As a Tama, I can get EXP Point from getting feed
  • As a Tama, I can only eat once in 1 minutes
  • As a Tama, I can get EXP Point from training
  • As a Tama, I can only train once in 5 minutes
  • As a Tama, I can level up from EXP points I get
  • As a Tama, I will have new owner when I'm bought in the market
  • As a Tama, I will write diary when I do activity

All User

  • As a user, I can create Tama
  • As a user, I can get Tama detail
  • As a user, I can browse Tama Market
  • As a user, I can buy Tama in the Market

Tama Owner

  • As an owner, I can feed my Tama
  • As an owner, I can train my Tama
  • As an owner, I can buy EXP for my Tama
  • As an owner, I can kill my Tama
  • As an owner, I can list my Tama to Market (in ETH)
  • As an owner, I can cancel listing my Tama from Market
  • As an owner, I can check my Tama Diary (history log)

Admin/Initiator

  • As an admin, I can give bonus EXP to all Tama registered

EXP & Leveling System

Formula : Level = (25 + โˆš(625 + 100 * EXP)) / 50

EXP Table

Level Total EXP
1 0
2 50
3 150
4 300
5 500
... ...

Values of Parameter

Case Input Example
createTama Tamago
feedTama Tamago
trainTama Tamago
listInETH Tamago,3
buyEXP Tamago
giveBonus 100 (EXP)
getTama Tamago

tama_solidity's People

Contributors

chrysvl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.