/************************************************* xmastermind by Florian Schintke Version: look into configure.h Please read the README.for.developers. *************************************************/ #include #include "configure.h" #include "mastermind.h" #include "apptogui.h" int main(int argc, char *argv[]) { mastermind_initialize(); apptogui_initialize_main_window(&argc, argv, "xmastermind"); apptogui_show_main_window(mastermind_total_combinations(), mastermind_combinations(), 0); apptogui_run_main_window(); /* while (not_solved && (current_line != HEIGHT)) */ /* { */ /* read_input(); */ /* generate_answer(); */ /* printf("There are %d possible combinations left.\n", combinations()); */ /* print_board(); */ /* not_solved = ! solved(); */ /* current_line++; */ /* } */ /* if (current_line == HEIGHT) */ /* { */ /* int i; */ /* printf("You missed. The right answer is: "); */ /* for (i = 0; i < WIDTH; i++) */ /* printf("%c ", solution[i]); */ /* } */ /* else */ /* printf("You needed %d tr%s.\n", */ /* current_line, */ /* (current_line == 1)? "y" : "ies"); */ return 0; }