Bitcoin Forum
June 21, 2024, 10:37:34 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: TRON101 Review| This TRON DAPP Ranked First after 2 days of online! Shrimp Farm  (Read 62 times)
TRON Reviewer (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
December 18, 2018, 10:00:06 AM
 #1

An amazing TRON game is online again! Use shrimp to lay eggs, then sell eggs to make coins, but it seems that such a game is in line with the player's taste. On the day of onlie, TRON Shrimp Farm is ranked third in the transaction volume. Today's DAppReview data shows that daily active users for past 24 hours of the game has ranked first!

TRON101 find that TRON Shrimp Farm is a blockchain idle game with TRON as the bottom layer. At the beginning of the game, each player is given 5 free shrimps, and each shrimp produces an egg in 24 hours. Each person has a virtual shrimp farm, and the shrimp will lay eggs regularly. Players can choose to incubate the shrimp eggs into more shrimps, or sell them in exchange for some TRX rewards.

There are four logics in TRON Shrimp Farm:
· Eggs hatch shrimps
· Shrimps produce eggs
· Buy eggs to produce shrimp
· Sell eggs to earn coins


At first glance, this is really a boring game. After all, the average idle game will have at least some upgrades or technology options to invest. The core cycle of TRON Shrimp Farm will only have shrimps and eggs, and then hatch. It is completely insincere. But the only thing it does is to open the sale, so that the player feels that there is a possibility of profit. It dosen’t matter that what’s the use of the shrimps, making money is enough to attract everyone to play it.

In fact, TRON Shrimp Farm is not the first. In May of this year, Ether Shrimp Farm has already been popular in the DApp circle. Through the experience and comparison of the game by TRON101, it is found that TRON Shrimp Farm transplanted the entire gene of Ether Shrimp Farm.

Even though Ether Shrimp Farm was not a delicate game at first glance, what is really powerful is that it is a real blockchain game with contract source code. Click its source code and it really amazes you. This is a beautiful mathematical model that solves the problem of pricing and liquidity.

In the previous four logics we talked about: laying eggs, hatching eggs, buying eggs, selling eggs. Among them, the most powerful is the part of buying and selling eggs. It is not the same as the common game trading, you do not need to find buyer/ The seller, but deals directly with the "system." In other words, eggs and coins are in the system.

Buying and selling is a human-computer interaction. When you press it, you can see the result, which greatly saves the time cost of the matching transaction.

Let's take a look at the part of the mathematical model. In order to achieve the "human-computer interaction" function mentioned above, we need a mechanism to automatically determine the price of the egg.

In line 58 of the Ethernet shrimp contract, the author gave a formula:

CalculateTrade(rt,rs,bs)=(PSN*bs)/(PSNH+((PSN*rs+PSNH*rt)/rt))
PSN = 10000, PSNH = 5000.


Regardless of source of two magic numbers 10000 and 5000, according to the method of using formula by several Functions, it will automatically decide the price of the egg in a given system.

In order to study its nature, I threw the formula into the drawing tool, and found that PSN and PSNH seem to just make the integer multiplication and division error not too big, only add the coefficient, in fact, as long as the 2:1 relationship is enough, So it was slightly simplified, and the following figure was obtained.


In simple terms, rs and bs are the original quantities of the two resources, and rt is the amount of resources you are about to inject, and the return value is the amount of another resource that the system should give back to you. Take the example of selling eggs. In the original big pool, there are rs eggs and bs ether coins. When you sell rt eggs, the system will reward your TRX quantity as calculateTrade(rt, rs, bs).

As you can see here, it is a function of the opening down (the slope is decreasing), so we can roughly imagine:
If someone sells a lot of shrimp, it will become more and more cheap. On the contrary, buying a lot of shrimp will make it more and more expensive.

Furthermore, we can find that this formula has some Good Properties, the following is explained by another ma
We can find a lot of functions that open downwards. Why is this so special? Because it is actually finding a value that fits this feature:

(X+ΔX)*(Y-ΔY)=X*Y


In other words:
Regardless of the price of buying or selling or trading, we want to make the product of the number of TRX and the number of eggs before the transaction equal to the product of the number of TRX and the number of eggs after the transaction, as shown by the yellow line on the chart.


The Calculatetrade in the contract is to find the correct ΔY given X, ΔX, Y to match the above attribute.

From the game's point of view, when the trading volume is small (the part where ΔX is small), the slope does not change much. The average player's buying and selling experience at the same time is roughly linear, but the system can still maintain flexibility for market changes, so that the player will never be led by the price to buy or sell coins.

In addition, the movement on this curve is in line with the exchange rate, that is, although the slope will change, the player will sell 10,000 eggs at a time, and I will sell 7,000 and then sell 3,000, (without handling fees). The same is true, players can focus on the market, free to decide when to ship, without frequent operations to optimize performance, which is very helpful to improve gameplay and reduce fees.

Game Sustainability

Even with a beautiful mathematical model, it is clear that shrimps can continue to lay eggs, and the number of shrimps themselves is increasing. The eggs on the market will only increase in the long run.

We can imagine that according to this model, when the egg is increased by n times, the TRX in the pool will become:

1/(1+n)

Thus, when the coins are squeezed out, a little bit of coins can buy a lot of eggs, but no one will buy them, because it is obviously unprofitable!

The strategy adopted by the wave farmer is:
Raise traffic and get commission from each transaction.

Such operational thinking is rare in past games. Generally, buying in the mall is the developer's income, and trading with the player is purely in-game interaction. But the developer and the user have the same interests through the blockchain and they are willing to grow together.

The advantages and limitations of blockchain games:

The wave farm shrimp farmers have played a very good role in the blockchain:

Comes with capital flow, high cross-program interaction.

Also working hard to reduce the disadvantages of the blockchain:

High latency and high cost per operation.

It is a good example.

Game richness might be the disadvantage of TRON Shrimp Farm, but this is not the original sin of the blockchain, just it needs to optize. If it raises shrimp, it can also use the resources produced to do other things, such as research and development of new varieties: base shrimp, pimp shrimp, spicy crayfish and so on. Or open a barbecue stall, I am afraid it is a new explosion.

Ether Shrimp Farm Source code:
https://etherscan.io/address/0x58aff91f5b48245bd83deeb2c7d31875f68b3f0d#code

The copyright belongs to TRON101. Reprint with proper attribution.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!