Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mirrorworld-universe/trade-or-bust-solana
https://github.com/mirrorworld-universe/trade-or-bust-solana
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mirrorworld-universe/trade-or-bust-solana
- Owner: mirrorworld-universe
- Created: 2023-09-18T05:23:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-13T04:23:24.000Z (about 1 year ago)
- Last Synced: 2024-04-14T16:18:59.269Z (9 months ago)
- Language: JavaScript
- Size: 9.23 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Trade-Or-Bust
# **Game Introduction**
**Trade or Bust is a fully on-chain economic strategy game where players strategize to survive in a volatile economic market. ✨**
In this dynamic and unpredictable market, players are tasked with crafting personal strategies to continuously accumulate assets within a limited timeframe. Your journey involves securing financing, exploring a rich and varied map, engaging in covert trades with peers, and meeting interest payments to the central bank. Your ultimate goal? To survive the market's randomness and uncertainties, emerging as the triumphant victor in a vibrant economic battleground.
Dive in, strategize, trade, and may the best player win! 👍
![github-present-gamethumb](./thumb/github-present-gamethumb.png)
## **Core Rules**
![github-present-rulethumb](./thumb/github-present-rulethumb.png)
For a deeper dive into the game rules, please check 👉 [Trade or Bust Rules](https://www.notion.so/Trade-or-Bust-Rules-953378b93b8f4d73b586d44e678bd9d8?pvs=21)
## Core Game Play
### Asset Select
There are 6 different types of assets available for you to choose from. One of the strategies you need to consider is how to ensure sufficient liquidity for your assets. 😆
![github-present-pickasset](./thumb/github-present-pickasset.png)
### Capital Card Choose
Each capital card offers different interest rates. Consider your strategy carefully before making a selection. 🧐
![github-present-pickfund](./thumb/github-present-pickfund.png)
### Covert Trade
Only the two parties involved in the trade know the price information. Make the most of this process by strategizing and bargaining! 🤩
![github-present-submitoffer](./thumb/github-present-submitoffer.png)
# Tech Stack
## **Technologies Used**
In the project, we have adopted the following technologies:
- Solana On-Chain support: In the project, we have developed the on-chain SDK for trade-or-bust using Rust with the support of Solana (https://www.npmjs.com/package/@mirrorworld/solana.tradeorburst). This SDK is used to support the game's data and core logic.
- CocosCreator: We have utilized CocosCreator as our frontend development tool to enhance the development efficiency and achieve impressive visual effects.
- Zero-Knowledge Proof for Enhanced Gameplay: In the core game content - forced trading part, we plan to use Zero-Knowledge Proof to encrypt the trading content to increase the fun and challenge of the game.## **APIs for Frontend-Backend Interaction**
The project encompasses over a dozen APIs that facilitate seamless communication between the frontend and on-chain SDK. These APIs handle important operations and actions required for the game mechanics and player interactions.
They are
```
joinGame,askStart,move,pickAsset,pickFund,trade,acceptTrade,rejectTrade,finishGame
```We have implemented these interfaces preliminarily, but in a real environment, the situation may become more complex. In subsequent development, we will incorporate additional logic to handle various unexpected scenarios, such as insufficient tokens.
## **Enhanced Gameplay with Zero-Knowledge Proof**
In the core gameplay content, specifically the mandatory trading aspect, we have planned to incorporate Zero-Knowledge Proof (ZKP) to encrypt transactional content. This addition aims to enhance the game's overall excitement, challenge, and security by introducing cryptographic techniques to ensure privacy and validate player actions.