Example #1
0
void 
Results_init_p(Results r)
{
    int i;
    for(i=0; i < RESULTS_INTERNAL_MAX; i++) {
        if (r->list[i]) {
            Round_destroy(r->list[i]);
            r->list[i] = 0;
        }
    }
    r->nresults = 0;
}
Example #2
0
int
traite_joker(Game game, int num)
{
    int i;
    int score = 2 ;
    Round round ;
    round=Round_create() ;
    Game_getsearchedround(game,num,round) ;

    for(i=0; i < Round_wordlen(round); i++) {
        if (Round_playedfromrack(round,i)) {
            if (Round_joker(round,i)) {
                score -= 1 ;
            }
        }
    }
    Round_destroy(round) ;
    if (verbeux >=2) {
        printf("<score_joker>%d</score_joker>\n", score);
    }
    return score ;
}