Example #1
0
//simply prints out the board
void printBoard(Boggle& boggle) {
    for (int i=0; i<4; i++) {
        for (int j=0; j<4; j++) {
            cout<<boggle.getLetter(i,j);
        }
        cout<<endl;
    }
    cout<<endl;
}
Example #2
0
/*
 * Function: printGUI
 * --------------------
 * sets up the GUI
 *
 * Preconditions:
 *
 *  @param: boggles object of type Boggle
 *  @return: none
 */
void printGUI(Boggle& boggles){
    string s;
    for(int i=0;i<4;i++){
        for(int j=0;j<4;j++){
            s += boggles.getLetter(i,j);
        }
    }
    BoggleGUI::labelAllCubes(s);
}