click.game is purely based on probability, where the statistical odds are predetermined by the number of bad tiles chosen.
The probability of a safe tile is calculated as follows:
$$ P(safe)= Safe Tiles / Remaining Tiles $$
However, the probability of clicking on X safe tiles is the cumulative probability of clicking on multiple safe choices sequentially. To calculate the probability of clicking on safe tiles given S safe tiles and N total tiles, the following equation can be used:
$$ P(n Safe Tiles)=S/N * S-1 / N-1 * ...S-(n-1) / N-(n-1) $$
We use a fair multiplier based on inverse probability and add a house edge to the equation
$$ House Multiplier(n)=1*Probability of Surviving (n) Picks * (1-H) $$