From b6df015277c43046d8d109fdd47c082b6c80e71b Mon Sep 17 00:00:00 2001 From: alogindtractor <251821224+A-Log-In-D-Tractor@users.noreply.github.com> Date: Sun, 8 Feb 2026 22:05:39 -0800 Subject: [PATCH] cursor fixes (#74) cursor fixes --- KfChatDotNetBot/Services/KasinoMines.cs | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/KfChatDotNetBot/Services/KasinoMines.cs b/KfChatDotNetBot/Services/KasinoMines.cs index 2d502ca..b01fa04 100644 --- a/KfChatDotNetBot/Services/KasinoMines.cs +++ b/KfChatDotNetBot/Services/KasinoMines.cs @@ -326,14 +326,16 @@ public class KasinoMines List<(int r, int c)> validBets = new(); int numGems = 0; - //first get a list of valid coordinates that could be bet on + //first get a list of valid coordinates that could be bet on (any unrevealed tile - gem or mine) for (int r = 0; r < game.Size; r++) { for (int c = 0; c < game.Size; c++) { - if (game.MinesBoard[r][c] == 'G' && !game.BetsPlaced.Contains((r, c))) numGems++; - else if (!game.BetsPlaced.Contains((r, c))) validBets.Add((r, c)); - + if (!game.BetsPlaced.Contains((r, c))) + { + validBets.Add((r, c)); + if (game.MinesBoard[r][c] == 'G') numGems++; + } } } @@ -386,14 +388,16 @@ public class KasinoMines List<(int r, int c)> validBets = new(); int numGems = 0; - //first get a list of valid coordinates that could be bet on + //first get a list of valid coordinates that could be bet on (any unrevealed cell for user-provided coords) for (int r = 0; r < game.Size; r++) { for (int c = 0; c < game.Size; c++) { - if (game.MinesBoard[r][c] == 'G' && !game.BetsPlaced.Contains((r, c))) numGems++; - else if (!game.BetsPlaced.Contains((r, c))) validBets.Add((r, c)); - + if (!game.BetsPlaced.Contains((r, c))) + { + validBets.Add((r, c)); + if (game.MinesBoard[r][c] == 'G') numGems++; + } } }