Difference between revisions of "Talk:Pig"
User314159 (talk | contribs) |
User314159 (talk | contribs) |
||
Line 29: | Line 29: | ||
:Apologies, Viktor36 I have reviewed the math and I have seen that that step makes sense, though I still would appreciate an explanation of the math so I can figure out my program. [[User:Glad Wrap|Glad Wrap]] ([[User talk:Glad Wrap|talk]]) 03:58, 18 January 2022 (UTC) | :Apologies, Viktor36 I have reviewed the math and I have seen that that step makes sense, though I still would appreciate an explanation of the math so I can figure out my program. [[User:Glad Wrap|Glad Wrap]] ([[User talk:Glad Wrap|talk]]) 03:58, 18 January 2022 (UTC) | ||
− | ::3 total truffles is the average amount of truffles a pig will produce, not the total it will | + | ::3 total truffles is the average amount of truffles a pig will produce, not the total it will produce each day. Sometimes it can produce 4, or 2, or 1, or even 100 in a single day due to the random chance involved. [[User:User314159|User314159]] ([[User talk:User314159|talk]]) 21:18, 18 January 2022 (UTC) |
== Bug and Floors and pathes == | == Bug and Floors and pathes == |
Revision as of 21:25, 18 January 2022
This talk page is for discussing Pig. | |
---|---|
|
|
Truffles Per Day
The statement that the average amount of truffles in a day is three for a max happiness pig comes from the claim that the first truffle is pretty much guaranteed and susequent ones have a likeleyhood of 1000/1500 or 2/3.
The first truffle therefore has probalility 1 while the second one has 2/3, the third (2/3)^2 the fourth (2/3)^3 etc.
The average amount of truffles then becomes an infinite geometric series.
1 + 2/3 + (2/3)^2 + (2/3)^3 +....
We call this S and perform some calculations:
S = 1 + 2/3 + (2/3)^2 + (2/3)^3 +....
S*(2/3) = 2/3 + (2/3)^2 + (2/3)^3 + (2/3)^4 +....
S - S*(2/3) = S*(1/3) = 1
S = 3
I did this same calculation and arrived at 2.5 at first becuase I did 1000/1500 in my head and somehow got 3/5. This should be right though. Viktor36 (talk) 22:44, 17 May 2021 (UTC)
- Hi Viktor36, I have a question, so I was attempting to make a program to calculate the amount of truffles for a given friendship and I got 3 EXTRA truffles at max happiness, whereas you got 3 total truffles, I am not good at math but when I was looking at your calculations I noticed that between the
- S = 1 + 2/3 + (2/3)^2...
- Step and the
- S*2/3 = 2/3 + (2/3)^2...
- Step, the 1 seems to dissappear, is that a mistake? If not an explanation of the math would be very helpful.
- Thanks Glad Wrap (talk) 03:22, 18 January 2022 (UTC)
- Apologies, Viktor36 I have reviewed the math and I have seen that that step makes sense, though I still would appreciate an explanation of the math so I can figure out my program. Glad Wrap (talk) 03:58, 18 January 2022 (UTC)
- 3 total truffles is the average amount of truffles a pig will produce, not the total it will produce each day. Sometimes it can produce 4, or 2, or 1, or even 100 in a single day due to the random chance involved. User314159 (talk) 21:18, 18 January 2022 (UTC)
Bug and Floors and pathes
It seens like there's a bug that Pigs inside of Fences kann drop the Truffles outside of the area they have acces to. Example: There's a Pig wich cannot move because 8 Fences are directly next to it. The Pig will produce the Truffles and they will be outside of the Tile, the Pig is standing in.
|=Fence; +=Pig; "=Truffle:
| | | " | + | | | | "
Of course it also works if there are multiple Pigs in a big enclosure.
I can upload a image too if needed...
Also truffles can be dropped on flooring (craftable wood floor in my case), the page sais the opposite. Botautal (talk) 20:37, 19 May 2021 (UTC)
- Hi Botautal, I think truffles spawning outside fences is the way ConcernedApe intended it to work. The alternative is that no truffle spawns at all, so I would say it may be better as a "note" rather than a "bug" on the page.
- It's entirely possible that ConcernedApe fixed the flooring bug in v1.5 and forgot to put it in the change notes. I'll remove it from the page. Thank you, margotbean (talk) 20:44, 19 May 2021 (UTC)