hangman/main.cpp
// level is from 0-6 inclusively
level is from 0-6 inclusively
level is from 0 - 6 inclusively
void print_character(int level) {
    switch(level) {
        case 0: cout << reps.empty; break;
        case 1: cout << reps.one; break;
        case 2: cout << reps.two; break;
        case 3: cout << reps.three; break;
        case 4: cout << reps.four; break;
        case 5: cout << reps.five; break;
        case 6: cout << reps.dead; break;
        default: throw runtime_error("unknown representation");
    }
}
void print_character ( int level ) { switch ( level ) { case 0 : cout << reps . empty ; break ; case 1 : cout << reps . one ; break ; case 2 : cout << reps . two ; break ; case 3 : cout << reps . three ; break ; case 4 : cout << reps . four ; break ; case 5 : cout << reps . five ; break ; case 6 : cout << reps . dead ; break ; default : throw runtime_error ( " " ) ; } }
level is from 0-6 inclusively
level is from 0 - 6 inclusively