就这样吧 还有一些bug 不改了
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user