* Add MinesCommand

Add MinesCommand
parses user input and submits it to mines service

* Add KasinoMines service to bot services

Add KasinoMines service to bot services

* kasinomines service code

kasinomines service code
holds all the game information so that games can be ongoing, you can leave your game and come back to it later,

* Update MinesCommand.cs

* Update KasinoMines.cs

* Update MinesCommand.cs

* add house edge to limbo

add house edge to limbo

* add house edge to keno

add house edge to keno

* Update BotServices.cs

forgot to add kasino mines item

* Update BuiltIn.cs

add kasinomines cleanup delay setting

* Update KenoCommand.cs

add difficulty options to keno, classic low medium high default high

* Update PlanesCommand.cs

adds house edge to planes
if your buffs cause house edge to be greater than 1, you have a HOUSE_EDGE - 1.0 % chance to get a guaranteed win,
if house edge is less than 1, 1-HOUSE EDGE chance for a guaranteed loss

* Update PlanesCommand.cs

missed a counter update

* Update PlinkoCommand.cs

plinko house edge update
changes vacuum strength based on house edge
This commit is contained in:
alogindtractor
2026-02-01 19:48:17 -08:00
committed by GitHub
parent de859e8fad
commit 2bb56c2388
8 changed files with 833 additions and 173 deletions

View File

@@ -39,7 +39,8 @@ public class PlinkoCommand : ICommand
private const string BIGWINSPACE = "💲";
private const int DIFFICULTY = 8;//maybe plan to allow user to change difficulty of plinko in future updates, would need to change the payout logic though
private static readonly double VACUUM = 0.27;
private static double VACUUM = 0.25;
private decimal HOUSE_EDGE = (decimal)0.98;
private static Dictionary<decimal, string> PAYOUTSTOSTRING = new Dictionary<decimal, string>()
{
@@ -69,7 +70,7 @@ public class PlinkoCommand : ICommand
public async Task RunCommand(ChatBot botInstance, MessageModel message, UserDbModel user, GroupCollection arguments,
CancellationToken ctx)
{
VACUUM += 1 - (double)HOUSE_EDGE;
validPositions = new List<(int row, int col)>() { (0, DIFFICULTY-1) };
validColumnsForRow = new Dictionary<int, List<int>>(){{0, new List<int>(){DIFFICULTY-1}}};