Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeremytubongbanua/cryptomon
1st Place Winner for UW Blockchain Hackathon (University of Washington). A chat-based game run on discord.py and blockchain that aims to gamify crypto and introduce new people to the concept of cryptocurrency and blockchain.
https://github.com/jeremytubongbanua/cryptomon
blockchain discord-py
Last synced: 26 days ago
JSON representation
1st Place Winner for UW Blockchain Hackathon (University of Washington). A chat-based game run on discord.py and blockchain that aims to gamify crypto and introduce new people to the concept of cryptocurrency and blockchain.
- Host: GitHub
- URL: https://github.com/jeremytubongbanua/cryptomon
- Owner: JeremyTubongbanua
- Created: 2021-05-15T17:04:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-16T22:38:43.000Z (over 3 years ago)
- Last Synced: 2023-03-12T05:12:36.798Z (over 1 year ago)
- Topics: blockchain, discord-py
- Language: Python
- Homepage:
- Size: 555 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cryptomon
A crypto based gatcha game for UW Hacks.
See main.py for entry script.# Discord commands
- $help `Displays the tutorial and lists all the commands that can be used in the bot`
- $wallet `Displays the amount of each crypto and graphic cards you have in your inventory.`
- $stocks `Displays the stats of each crypto (spawn rate, catch rate, and sell rate).`
- $mine `Mines a crypto that you can catch.`
- $validate `Attempts to catch the crypto you mined.`
- $sell (crypto name) (amount) `Sells the cryptocurrency and you get graphic cards in return.`
- $print `Displays the blockchain in both the terminal and the discord server.`# How to use Blockchain.py module
1. Import the module (`from blockchain import addNewBlock, printBlockchain`)
2. Add blocks! (`addNewBlock('genesis', True, 0, 0, False, 10, 0, 0, 0)`)
3. View the blockchain in console (`printBlockchain()`)blockchainSample.py
```py# How you use blockchain.py
from blockchain import addNewBlock, printBlockchain
if __name__ == '__main__':
# parameters:
# transactionType, success, mineInt, catchInt, encounter, numGraphicCards, numDogecoin, numEthereum, numBitcoin
# add blocks to the block chain
addNewBlock("genesis", True, 0, 0, False, 10, 0, 0, 0)
addNewBlock("sell", False, 0, 0, False, 1, 2, 3, 4)printBlockchain() # print out the block chain
# what is printed out by printBlockchain:
'''
===== Block 1 =====
Hash: c6dd0cae19eafbc487e4bad7d267dfb1
BlockData: ('genesis', True, 0, 0, False, 10, 0, 0, 0)
Previous Hash: None===== Block 2 =====
Hash: c9afc528ed0e05113bc2f6bdbc402b9f
BlockData: ('sell', False, 0, 0, False, 1, 2, 3, 4)
Previous Hash: c6dd0cae19eafbc487e4bad7d267dfb1
'''```