Side Project
February 2025 - Present
This project is a web-based simulator designed for solo Loveca play, functioning as a "smarter dice" to generate scores. It aims to provide a realistic simulation of Loveca outcomes by incorporating a nuanced scoring method.
The scoring for each deck is determined by an array of points, referencing src/utils/presets.ts
. The final score is calculated using a sigmoid function:
$$ y=\operatorname{round}\left(\frac{m}{1+e^{-ax+b}}\right) $$
Where:
x
is a random number between 0 and 1. a
and b
are values that determine the difficulty, as referenced in src/utils/index.ts
. m
is the maximum possible score. The use of a sigmoid function allows for a distribution where 0% and 100% probabilities are more common, with a smooth gradient for intermediate values. This mimics real-world scenarios where outcomes are often either complete failure (0%) or ideal success (100%), with varying degrees of partial success in between.
The project is a web application, likely built with JavaScript/TypeScript, given the file structure and the nature of the calculations.
© 2023-2024 HamP, Assets used in the site belongs to respective owner | View Source