dzuqe / npc

simple npc game interactions using a stateful contract and atomic transfers
MIT License
3 stars 2 forks source link

George

Simple NPC game interactions using a stateful contract and atomic transfers

intro

DISCLAIMER: NO WARRANTY INCLUDED: This contract is for tutorial purposes and hasn't been through a security audit. Use this contract on mainnet AT YOUR OWN RISK! I won't be responsible for any loss incurred.

# node
make pvtnet     # create private net
make start      # start private net
make stop       # stop private net

# ci
make build      # build contract
make deploy     # deploy contract

# interact
make read       # read global state
make heal       # heal npc
make injure     # damage npc
make kill-npc   # run `injure` 6 times
make transcend-npc # run `heal` 6 times
make delete     # retire the app

If you've enjoyed this article you can tip me at: ZEWLZ7H4MITB2GGCNOR5YTDZXKBVJTKLDT7VDRCUAKEI6ZZ2D7KYKBH6TU