Git Product home page Git Product logo

eth-game's Introduction

eth-game

install

installing dependencies.

npm i // yarn install

test

Test contracts.

truffle test

compile

truffle compile

migration

setting up development network with Ganache ( http://truffleframework.com/ganache/ ).

truffle migration

test run

npm start

eth-game's People

Contributors

syuhei176 avatar kazuya-tanuma avatar

Watchers

James Cloos avatar  avatar

eth-game's Issues

Monster Design

Description

  • 手書き画像
  • 体力
  • 技(攻撃、回復)
  • 特殊能力

Use IPFS(Swarm)

Description

IPFS: store the game item data.
smart contract: hash of the game item.

Update README.md

Problem

開発をはじめる方法がわからない。

Solution

説明を追加する。

Contract Design

Contractの設計をやる

newMonster

モンスターの新規作成

  1. モンスターを新規作成する
  2. balanceを減らす
  3. owner紐付け

sendMonster(address receiver, uint monsterId)

  1. モンスターを渡す、owner変更
  2. receiverのbalanceを減らす
  3. senderのbalanceを増やす

emitBattle()

バトルの勝敗を提出。

ゲームの場合って勝敗をtransactionにどう刻むんだろ

Game Design

サマリー

ルール

ゲームのルールを簡単に。
ゲームをやる人の役割の説明。

インセンティブ設計

プレイヤーはなんでゲームをやるのか。

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.