Commit Graph

24 Commits (42509c4c09b51000de7b6784d9d73595e2f8688d)

Author SHA1 Message Date
Pi-Hsun Shih b653b3993c Fix peak_start not defined
Fix #110.
4 years ago
Mike Bryant 8f49882245 Revert "Make probability accurate by condition probability on the value."
This reverts commit 3fa1867340.
4 years ago
Mike Bryant a5194879d0 Revert "Fix a wrong comment."
This reverts commit 8c43570c9a.
4 years ago
Pi-Hsun Shih 8c43570c9a Fix a wrong comment. 4 years ago
Pi-Hsun Shih 3fa1867340 Make probability accurate by condition probability on the value.
Tested that the result is same as the "should report" in #95.

Fix #48, #95.
4 years ago
Pi-Hsun Shih 28e73937bc Refactor and move common parts out. 4 years ago
Mike Bryant 6cfc140173 fix: Add a fudge factor
The reversed code isn't a perfect match for ARM 32-bit floating point assembly. This should allow us to cope with things that are a little out of range due to floating point weirdness
4 years ago
Mike Bryant 46929bd556 fix: Use min for guaranteed minimum
Should be, max of mins for each pattern, then min of those
4 years ago
Mike Bryant 21cb1a0ed2 fix: Make guaranteed minimum correct for all patterns, and fix sorting
Fixes #98

Fixes #76
4 years ago
Mike Bryant da1d75ba51
Merge pull request #102 from peter50216/patch-2
Update rate range to match intceil
4 years ago
Peter Shih 7d1f46fe8c
Change prediction of rate to consider not only the previous known value
This also makes the predicted range more strict, so won't help with all those invalid pattern issues, but should give an more accurate result.
4 years ago
Peter Shih a41f2d5975
Update rate range to match intceil
I doubt this would change any prediction at all, but this is more correct according to the code.
4 years ago
Ryan Carbotte 0d9e0d8f8d feat: Implements a more true to game code intceil calculation
This replaces all instances of Math.floor() and Math.ceil() with a
calculation that more closely matches the C++ implementation in game.
4 years ago
Phoenix Meadowlark 927480748c
Update to provide consistent cross-browser behavior.
Changes the sorting in `generate_possibilities` to have the intended effect. The old version worked on firefox, but did not sort the list on chrome because `a.weekMax < b.weekMax` does not return `-1` if `a.weekMax > b.weekMax`.
4 years ago
Mike Bryant 54b8458a5f Squashed commit of the following:
commit efffda8fc2ae9ebf5df051c33159fc4334075470
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 19:03:49 2020 -0400

    Fixed Reset Button

    Fingers crossed on last commit

commit ff6b739533c20e1eb3f4942b06def9fdfcf58548
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 18:49:54 2020 -0400

    Copy Update + Radio Button Fix

    Changed the copy under "First-Time Buyer" and made the selected radio button a solid fill rather than only coloring the text.

commit 95887a68b671dcf231e4e7aea6710bfe4e2eae29
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 18:31:18 2020 -0400

    Removed a Console Log

commit 84f1ef8b96730818903aaa0e12ab12be642f8bd1
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 18:27:03 2020 -0400

    Added Probabilities

    Chart will now also display % chance of that pattern.

commit d047d7749ca2809165068fe3f787c83ffba8b45e
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 18:08:35 2020 -0400

    Added "First Buy" and "Previous Pattern"

    All CSS needed for these fields have also been included, as well as some Javascript updated to reflect the new radios.

commit 95b60e1458df72c86cf91c2017cb8208e0829d9b
Merge: 1d6046b be09f8e
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 13:51:53 2020 -0400

    Merge branch 'front-end'

commit be09f8e6085dccf90683c819a3deec44852a54b1
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 13:51:43 2020 -0400

    Requested changes

    This commit adds changes as requested in https://github.com/mikebryant/ac-nh-turnip-prices/pull/34

commit 1d6046bfe283e6a779e2e2f49edd12b6fdf128bd
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 02:34:12 2020 -0400

    typo

commit a414b8fdc22aaad82265d502601c0d2a67050f5d
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 02:22:36 2020 -0400

    Update scripts.js

commit fbc3878d831e0f9abeb2de40337dedb8ee20f794
Merge: d521944 3cad0d4
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 02:18:57 2020 -0400

    Merge branch 'master' of https://github.com/Trevor-Welch/ac-nh-turnip-prices

commit d521944eae82eeb0644b13ffa75a23ec3d2f52ef
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Wed Apr 8 02:15:37 2020 -0400

    Massive UI Rework

    This commit completely changes the UI of the app, giving it a more Animal Crossing touch and make it feel like an app on the Nook Phone.

commit 3cad0d4f2a127ba46e946a9b0bebfc1cfb7001f2
Author: Trevor Welch <welch.trevor@yahoo.com>
Date:   Mon Apr 6 20:43:38 2020 -0400

    Refactored scripts.js

    Scripts.JS was very hard to read initially.

    This commity cleans things up, abstracts functions, and makes it a bit more easier to read.
4 years ago
Mike Bryant f30e1e751e Remove minimum, rename other field to guaranteed minimum 4 years ago
jtplatt99 f4ab1be863 Add 'LeastMax' Parameter
Add additional logic to compute 'LeastMax', which represents the worst case scenario maximum price achievable during the week (assuming everything is sold on the correct day).
4 years ago
Mike Bryant 45e055718f Fix calculations 4 years ago
Mike Bryant 0b69cba802 Rename pattern and make probability per row 4 years ago
Lou Huang 63e6b1adec feat: display %chance of each pattern if known 4 years ago
Ryan Carbotte cb69d49113 feat: Add toggle for filtering results to first ever buy 4 years ago
Mike Bryant bef9928e8b fix: Weekly max should exclude the buy price
Fixes #22
4 years ago
Peter Shih 0ea7fa5837
Fix maximum buy price
The maximum possible buy price is 110, not 109.
4 years ago
Mike Bryant 250da34d74 refactor: Move predictions logic to a separate file
Fixes #6
4 years ago