Doesn't really matter for this specific case but what would be better practice and what would be faster? I think the latter for both as I have read you shouldn't hardcode any numbers bigger than 1 and also id guess that an INC would be faster than an ADD in Assembly. Although I think the former looks better. Or is there a better way?
for (int i = 0; i < CARDS_PER_HAND; i++)
{
playerHand[i] = getDeck[deckIndex];
hellmuthHand[i] = getDeck[deckIndex + 1];
dwanHand[i] = getDeck[deckIndex + 2];
iveyHand[i] = getDeck[deckIndex + 3];
negreanuHand[i] = getDeck[deckIndex + 4];
deckIndex += 5;
}
or
for (int i = 0; i < CARDS_PER_HAND; i++)
{
playerHand[i] = getDeck[deckIndex];
deckIndex ++;
hellmuthHand[i] = getDeck[deckIndex];
deckIndex++;
dwanHand[i] = getDeck[deckIndex];
deckIndex ++;
iveyHand[i] = getDeck[deckIndex];
deckIndex ++;
negreanuHand[i] = getDeck[deckIndex];
deckIndex ++;
}