CaptainZ

CaptainZ

Prompt Engineer. Focusing on AI, ZKP and Onchain Game. 每周一篇严肃/深度长文。专注于AI,零知识证明,全链游戏,还有心理学。
twitter

P2Pool mode for the full-chain game matching mechanism.

The success of DeFi is not only due to the technological innovation of "putting financial rules on the chain," but also to the innovative operations and token economics.

DeFi's P2Pool Model#

Recently, I have seen three projects that have made great innovations in the operations and token economics of blockchain games. Two of them have expanded the game matching mechanism from the previous P2P model to the P2Pool model, while the other has extended the concept of liquidity pools to blockchain games.

I believe that during DeFi Summer, there were actually three points of innovation.

  1. Writing financial rules into smart contracts to promote decentralization and serverless backend in the industry.
  2. To solve the on-chain inefficiency of the matching mechanism, the P2P model has been expanded to the P2Pool model. For example, AAVE initially used the order book P2P model, but later switched to the lending liquidity pool model. Similarly, exchanges have also upgraded from the order book model to the AMM model, greatly improving the efficiency of transaction matching. For a detailed analysis, you can refer to my article "What is the 'AMM Moment' of blockchain games?"
  3. Token economics. In order to adapt to the matching mechanism, DeFi projects are often accompanied by liquidity mining in the form of providing liquidity to the pool.

P2Pool Model for Blockchain Game Matching Mechanism#

The matching mechanism is a very important mechanism in games and is widely used in various turn-based games, including card games, poker games, gambling games, strategy games (SLG and RTS), and most of them are based on the P2P (peer-to-peer) model.

Its main functions include:

  1. Fair competition: The matching mechanism ensures that players are paired with opponents of similar skill levels, which helps provide a balanced and fair gaming experience. This balance is crucial for maintaining the competitiveness and attractiveness of the game.
  2. Game progression: In turn-based games, the matching mechanism can pair players based on their skill levels, game experience, or game progression. This ensures that the matches are both challenging and fun.
  3. Learning and growth: By playing against players of different skill levels, players can learn new strategies and skills, thereby improving their own gaming abilities. This gradually increasing challenge helps maintain player interest and motivation.
  4. Reduced waiting time: An effective matching mechanism can reduce the waiting time for players to find suitable opponents, thereby improving the smoothness of the gaming experience and overall player satisfaction.
  5. Social interaction: The matching mechanism helps promote social interaction as it allows players to play with different people, potentially leading to new gaming communities and friendships.
  6. Keeping the game fresh: By matching players against different opponents and strategies, the game can provide a continuous stream of fresh and different experiences, preventing the content from becoming monotonous.
    Currently, in blockchain games, due to the performance limitations of the chain, either a room-based system (manual P2P) is used, where players choose their opponents themselves, or a simple matching mode is used, which is off-chain matching.

P2Pool Model in Mods Protocol#

Mods Protocol (@modsprotocol) recently adopted the popular P2Pool model from DeFi and proposed the PvPool model for the blockchain game matching mechanism.

Let's take the classic game of "Rock, Paper, Scissors" as an example.

Snip20231208_60

In a traditional on-chain "Rock, Paper, Scissors" game, there are generally two design patterns.

  1. Player A needs to create a room first, and then player B selects player A's room on the page to enter the PK.

  2. Off-chain random matching mechanism, where players only need to click the "Play" button and the game will automatically match two players for PK.
    Mods Protocol allows players to mint the rock, paper, and scissors props. After obtaining the props, players have two options:

  3. Stake them in the pool and enjoy a share of the pool's bonus. The number of props in the pool is public and visible to anyone.

  4. Use them as game props to participate in the game.
    Let's focus on the gameplay in the pool. When a player participates in the game, the rock, paper, and scissors props they use will compete with randomly selected props from the pool. The winner will receive the opponent's props, and in case of a tie, the props will be forcibly staked in the game and a package will be generated. As the opponent, the pool can not only enjoy the staking rewards but also win the player's props, which will be directly staked in the pool.

P2Pool Model in Sky Strife#

Another project that uses the P2Pool model is the popular Sky Strife.

Sky Strife (@skystrifeHQ) is a fully on-chain real-time strategy game (RTS) built using the MUD engine. It is developed by Lattice's in-house game designers and developers. The gameplay of Sky Strife is similar to other real-time strategy games. Taking a four-player map as an example, after the start of the game, the four players are located in their respective main bases at the four corners of the map. The goal of the players is to compete for more resources to produce soldiers and ultimately eliminate other players. The resources in the game are represented by Gold, denoted as "g." Players can consume Gold in their main bases to produce units with different attack power and movement speed.

Snip20231208_61

Currently, Sky Strife has only released the ORB token on the testnet as an "Entrance Fee" for creating game rooms. At the beginning of the season, all players do not have any ORB tokens. Therefore, the initial matches are initiated by the "Sky Pool" smart contract at a certain pace. Apart from playing games to win ORB tokens, there is currently no other way to obtain ORB tokens. In addition to the operation of creating game rooms (setting entrance fees, prize pool distribution, etc.), the "Sky Pool" smart contract does not have permission to perform any token-related operations, such as withdrawal or transfer of tokens.

Snip20231208_62

Similarities and Differences between the Two Models#

From the analysis above, we can see that the essence of the P2Pool model is actually the "game between real players and smart contracts." In DeFi, it is difficult to match and match real trading counterparts, so the liquidity provided by liquidity providers is aggregated into a pool, and then the smart contract represents this pool and acts as a counterpart to real users, thereby improving matching efficiency. In blockchain games, the matching of real gaming opponents also faces the problem of low efficiency, so the smart contract can also represent a pool and act as a counterpart to real users. There are two advantages to doing this:

  1. Providing sufficient counterparties. For turn-based games, many times we find a lack of sufficient opponents to match when we want to play. The pool/smart contract can provide a sufficient number of counterparties.
  2. Relatively fair token distribution model. In DeFi governance tokens, the common distribution model is that users obtain corresponding tokens by providing liquidity to the pool. In blockchain games, users can obtain tokens by providing props to the pool or playing games in rooms created by the pool.

When we take a closer look at Mods Protocol and Sky Strife, we can find that there are significant differences between the two.

Let's recall the situation in DeFi. On the one hand, when liquidity providers (LP) deposit token/token pairs into the liquidity pool, LP increases the liquidity of the pool. When users come to the pool for borrowing or trading, they actually reduce the liquidity of the pool. In Mods Protocol, players need to provide props to the pool, which I call Props Providers. They increase the playability of the pool, and real players and the pool are counterparts to each other. The pool in Sky Strife is different. First, players do not need to provide any game props. Secondly, this smart contract only opens a room for players to play against each other. Therefore, the multiple players entering the room are counterparts to each other, so this pool can only be considered neutral.

Asset Pool Model in Anome#

In addition to Mods Protocol and Sky Strife, Anome (@Anome_Official) also attempts to introduce the asset pool gameplay from DeFi into blockchain games and innovate in token economics.

Anome has recently developed a TCG game that combines game and DeFi. Players do not need to directly purchase NFT cards when entering the game, but instead stake stablecoins to obtain corresponding NFT cards. NFTs of different rarities require different amounts of staked stablecoins. Of course, NFTs can also be exchanged back into stablecoins at any time, ensuring the interests of players. So, where does the game development team make profits if not through NFT sales?

One way is during the early stages of game development, the issuer allows game users to stake stablecoins to obtain NFTs, gradually building up a fund pool, and then using DeFi on the fund pool to generate DeFi income to support the gradual development and improvement of the game. Once the game is developed and has gameplay, players can "spend" and "consume" in the game to earn profits, which will benefit the game development team and early NFT holders. During this stage, the funds staked by game users in the fund pool can continue to generate DeFi income.

In simple terms, the funds attracted through game traffic will form a staking fund pool, which can generate profits through financial and in-game spending, completely avoiding the pure Ponzi token paradigm. It can earn funds from outside the system, creating a hybrid of Game+DeFi.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.