1234567891011121314151617181920
void print_board(const life::board& outboard, WINDOW* menu) { wclear(menu); for (int i=outboard.cam_y(); i>-1*outboard.cam_height() + outboard.cam_y(); i--) { for (int j=outboard.cam_x(); j<outboard.cam_x() + outboard.cam_width(); j++) { if (outboard.at(j, i) == true) { wprintw(menu, "x "); } else { wprintw(menu, "- "); } } wprintw(menu, "\n"); } wrefresh(menu); }