Added betroll bettest, fixed a bug which caused betroll to have very low payout

This commit is contained in:
Kwoth
2022-07-31 21:26:34 +02:00
parent 616f01f8b2
commit 82d89148f3
5 changed files with 9 additions and 21 deletions

View File

@@ -12,7 +12,7 @@ public sealed class BetflipGame
public BetflipResult Flip(byte guess, decimal amount)
{
var side = _rng.Next(0, 2);
var side = (byte)_rng.Next(0, 2);
if (side == guess)
{
return new BetflipResult()

View File

@@ -13,7 +13,7 @@ public sealed class BetrollGame
public BetrollResult Roll(decimal amount = 0)
{
var roll = _rng.Next(0, 101);
var roll = _rng.Next(1, 101);
for (var i = 0; i < _thresholdPairs.Length; i++)
{

View File

@@ -8,9 +8,9 @@ public class SlotGame
{
var rolls = new[]
{
_rng.Next(0, 6),
_rng.Next(0, 6),
_rng.Next(0, 6)
(byte)_rng.Next(0, 6),
(byte)_rng.Next(0, 6),
(byte)_rng.Next(0, 6)
};
ref var a = ref rolls[0];