/* * Solution to Master Mind Hints */ #include #define MAXN 1000 int code[MAXN]; /* the current secret code */ char match[MAXN]; /* match type (w/respect to code) */ int guess[MAXN]; /* the current guess */ int hint[2]; /* the hint */ int n; /* length of the code */ void generate_hint() { int i, j; /* First identify all strong matches */ for(i=0;i