-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
楼主请教个问题,
for (int n = 0; n < MAX_COUNT; ++n)
{
random_shuffle(g_HuCardAll, g_HuCardAll + 130); // 这个函数对计算有影响
for (int i = 0; i < 9; ++i) // 136/14 -> 9
{
BYTE *cards = &source[total++ * 34];
memset(cards, 0, 34);
for (int j = i * 14; j < i * 14 + 14 - GUI_NUM; j++)
++cards[g_HuCardAll[j]];
cards[gui_index] = GUI_NUM;
}
}
source 从0-33存的是34种牌的数量,但gui_index的值是33,而source[gui_index]存的是鬼牌的数量,这样的话最后一张牌不是被鬼牌数量覆盖了么? 不知道是不是我理解错了
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels