All pastes #743891 Raw Edit

Something

public text v1 · immutable
·published 2007-10-20 21:29 UTC
rendered paste body
    for( int f = 0; f < numPlayers; f++ ) {
        hands[ f ].player = f;
        for( int z = 0; z < NUM_FACES; z++ ) {
            hands[ f ].faceCounts[ z ] = 0;
        }
        cout << "Player " << f + 1 << "'s cards are:" << endl << endl;
        for( int g = 0; g < CARDS_PER_PLAYER; g++ ) {
            cout << deck[ g ].face << " of " << deck[ g ].suit << endl;
            for( int h = 0; h < NUM_FACES; h++ ) {
                if( deck[ g ].face == faces[ h ] ) {
                    hands[ f ].faceCounts[ h ]++;
                }
            }
        }
    }