就这样吧 还有一些bug 不改了

This commit is contained in:
lichx
2024-04-22 13:48:40 +08:00
parent b0efa940c1
commit f006b58fa1
18 changed files with 986 additions and 126 deletions
+1 -1
View File
@@ -276,7 +276,7 @@ namespace CDSAE3_Lian_Lian_Kan.Boards
int k = random.Next(0, boardIndex.Count);
for (int i = 0; i < boardIndex.Count(); i++)
{
if (boardIndex[k + i].Count != 0)
if (boardIndex.ContainsKey(k) && boardIndex[k + i].Count != 0)
return boardIndex[k + i][random.Next(0, boardIndex[k + i].Count)];
}
return (-1, -1);