#define MIN(a, b) ((a) < (b) ? (a) : (b))
-static void game_configure(Widget w);
-
/* XXX generate this list? */
enum {
widgetMainWindow,
{
String name = (void *)&tree_strtab[item->name];
WidgetClass class;
- Widget w;
if (item->widget_type == widgetMenuBar)
return XmCreateMenuBar(parent, name, args, num_args);
return;
if (game_do_move(&state->board, x, y) == 0) {
+ if (game_check_goal(&state->board)) {
+ printf("You win!\n");
+ game_finish(&state->board);
+ }
+
x11_redraw_game(state);
}
}