Recently tried time management game. The plot is typical for games of this genre - using certain opportunities to manage a limited amount of resources to achieve a given goal for a limited time. I liked the toy, but there was a plug at level 11. In order to achieve the desired asterisk (what can you not do for the sake of virtual buns?), I decided to go wisely and do some calculations in order to discard useless strategies and still keep within the allotted bonus time. This article is about what I did and what results I got.
I will begin with a description of what is on it and what will be encountered in solving the problem.
Here you can, having a sufficient amount of gold, saw the wood needed for the construction of all other buildings.
One of the types of residential buildings. Cheaper, but less profitable than a cottage.
Treasure The map contains two hoards. The one on the left of the screen is 5,000 gold, and the one on the right is 1,000 gold.
In order to open the passage to the right side of the screen, you need to pay the pirate 10,000 gold.
The choice of the line of conduct at this level is complicated by the fact that the offers on the market are formed randomly. In order to understand how best to act in this situation, I made a sample of 100 market proposals:
Selection of market offersGold, Tree, Gold, Tree, Gold, Tree
100,10,500,40,500,20
1000,40,100,10,200,10
200,10,800,20,100,10
500,20,500,10,100,10
200,20,800,20,500,20
100,10,500,40,200,10
200,20,100,10,800,40
100,10,200,10,800.20
500,40,200,20,500,20
800,20,200,20,100,10
800,20,800,40,100,10
200,10,800,40,500,10
100,10,200,20,500,20
200,20,100,10,500,20
500,40,100,10,200,20
800,40,500,20,100,10
100,10,200,20,500,10
800,20,200,10,100,10
500,20,100,10,800,20
200,20,800,20,100,10
500,10,800,40,100,10
100,10,500,10,200,10
1000,40,500,20,800,20
100,10,1000,40,500,10
800,40,500,10,200,20
500,40,200,20,500,20
500,10,200,20,800,20
100,10,500,20,500,40
200,20,500,40,500,10
500,40,800,20,800,40
200,20,500,40,800,20
100,10,200,10,200,20
100,10,800,20,200,10
500,40,500,10,200,20
800,20,500,10,200,10
200,20,500,40,800,40
100,10,200,20,800,40
200,20,500,10,500,40
800,20,100,10,200,20
200,20,100,10,200,10
800,20,200,20,500,10
500,40,1000,40,100,10
500,40,800,40,100,10
800,40,100,10,500,40
200,10,200,20,800,40
200,20,800,40,100,10
800,40,200,20,500,40
100,10,800,20,500,10
200,20,500,10,1000,40
200,10,100,10,800.20
800,40,200,10,200,20
100,10,800,20,500,40
500,10,200,20,800,40
800,40,500,20,200,20
800,40,200,20,100,10
500,20,800,20,500,10
500,10,200,20,500,20
200,10,100,10,1000,40
100,10,200,10,500,20
800,40,100,10,200,20
200,20,500,10,800,20
200,20,500,20,100,10
200,20,200,10,100,10
100,10,500,10,200,10
200,20,800,40,100,10
800,20,800,40,1000,40
500,10,200,10,500,20
200,20,800,40,1000,40
200,20,500,20,100,10
500,20,800,40,500,40
100,10,200,20,500,20
800,20,200,10,200,20
500,10,100,10,200,10
100,10,200,20,500,20
800,20,500,40,100,10
200,10,500,10,500,40
200,20,100,10,800,20
200,20,800,20,100,10
200,20,500,40,200,10
100,10,800,20,200,20
1000,40,800,20,200,20
500,10,100,10,200,10
100,10,500,20,500,10
200,20,100,10,500,20
800,20,500,40,200,20
100,10,500,10,500,40
100,10,500,10,800,20
500,20,100,10,500,10
800,40,100,10,200,20
200,20,500,20,500,40
100,10,500,10,500,40
200,20,1000,40,800,40
200,10,800,40,100,10
100,10,200,20,800,40
500,10,200,10,500,40
100,10,200,20,800,20
100,10,1000,40,200,10
200,10,800,40,200,20
200,20,500,10,800,40
800,20,1000,40,500,20
On the basis of the data obtained, it is necessary to draw up a trading strategy (that is, a strategy for selecting random market offers). As such, I took the following:
Net profit is calculated taking into account that 10 units of wood cost 100 units of gold. Now you can analyze the data and get a table of frequency of profitability:
From here we get that the average profitability of a single transaction is 450 gold units!
In order to accomplish the task of the round, you need to build 5 residential buildings, and in the part accessible to us there are only 4 potential construction sites, so the right side to open is absolutely necessary. Thus, our task falls into two stages:
Consider the first stage. How to quickly earn 10,000 gold? To solve this subtask, you can offer several options:
Let us consider these strategies in order.
We have 110 units of wood and about 6000 gold (it is assumed that the cottage will bring 1000 gold during the first stage). As a result, we plan to receive 11,000 gold (10,000 for the redemption + 1000 for the construction of a sawmill) and 350 units of wood (for the construction of 4 huts we need 400 units of wood, for the garden in the cottage - 50, we expect to produce the missing 100 units of wood treasure).
In order to calculate how long it may take to accumulate the necessary amount of resources for this strategy, we use
.
The simulation results that answer the question: “What is the probability that N market transactions will be enough for us to achieve this goal?” Are shown in the table:
In this case, we have 2 markets available. One transaction lasts about 35 seconds (20 seconds to update a deal, 3 seconds to make a choice of a deal option, 4 seconds for the taxman to reach the market and 8 seconds to close the deal).
It turns out that you have to make from 7 to 12 visits to get the required number of transactions. Calculate the time required to make such a number of visits.
Calculate the cost of time for further action. We need to make a ransom, dig up the treasure and build 4 huts with gardens, after eliminating 2 markets. 10 (demolition of 2 markets and redemption) + 10 (dig up treasure and build 2 huts) + 8 (sawing firewood and splitting 2 gardens) + 18 (building 2 more huts with gardens) + 20 (operating costs and expenses for moving units) = 66 seconds. Add here another time to analyze the debris at the beginning of the level (15 - 20 seconds) and we get that you need about 80 - 85 seconds.
We have 110 pieces of wood and about 5,200 gold. As a result, we plan to get 11,000 gold and 400 wood units. Having done the same calculations, we got:
Given the fact that we have 3 markets, we need to make 6 - 9 visits.
In this case, in comparison with the previous one, we need to build a hut with a garden longer, that is, we need an additional about 20-25 seconds (in the amount of 100-110 seconds).
To achieve this result took 5 attempts. As a result, the goal has been achieved. We could stop at this, but we will briefly review the remaining strategies.
This strategy seems to be completely unpromising. The cycle time for receiving annuities is comparable to the cycle time of a market transaction, but trading, as has been shown, brings more than 2 times more gold.
This strategy is most likely not to work because it prefers waiting for action. In general, it could be investigated in more detail. I have no doubt that the interested reader will be able to do this on his own.
The task is solved, the goal is achieved, but the results are not particularly encouraging ...
Find a strategy that would lead to success at least 50% of cases failed. The question of the existence of such a strategy is also open. There is no guarantee that it exists at all in this particular case.
The results suggest that it might be worth making some adjustments to the conditions of the round, in order to make it more passable, because we like as a casual game. What can be done to increase the probability of passing?
Despite the fact that the results did not please me, the game, nevertheless, delivered a lot of pleasant sensations. I think that anyone who plays this game has found it fascinating and will enjoy the gameplay, and this is the most important thing.