BSD 4_3_Tahoe release
[unix-history] / usr / src / games / monop / monop.c
index 5dea4aa..66d4735 100644 (file)
@@ -1,3 +1,30 @@
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley.  The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
+#ifndef lint
+char copyright[] =
+"@(#) Copyright (c) 1980 Regents of the University of California.\n\
+ All rights reserved.\n";
+#endif /* not lint */
+
+#ifndef lint
+static char sccsid[] = "@(#)monop.c    5.6 (Berkeley) 6/18/88";
+#endif /* not lint */
+
 # include      "monop.def"
 
 /*
 # include      "monop.def"
 
 /*
@@ -62,7 +89,7 @@ over:
        name_list[i] = 0;
        for (i = 0; i < num_play; i++)
                for (j = i + 1; j < num_play; j++)
        name_list[i] = 0;
        for (i = 0; i < num_play; i++)
                for (j = i + 1; j < num_play; j++)
-                       if (strcmp(name_list[i], name_list[j]) == 0) {
+                       if (strcasecmp(name_list[i], name_list[j]) == 0) {
                                if (i != num_play - 1)
                                        printf("Hey!!! Some of those are IDENTICAL!!  Let's try that again....\n");
                                else
                                if (i != num_play - 1)
                                        printf("Hey!!! Some of those are IDENTICAL!!  Let's try that again....\n");
                                else
@@ -114,6 +141,6 @@ init_monops() {
        for (mp = mon; mp < &mon[N_MON]; mp++) {
                mp->name = mp->not_m;
                for (i = 0; i < mp->num_in; i++)
        for (mp = mon; mp < &mon[N_MON]; mp++) {
                mp->name = mp->not_m;
                for (i = 0; i < mp->num_in; i++)
-                       mp->sq[i] = &board[(int)(mp->sq[i])];
+                       mp->sq[i] = &board[mp->sqnums[i]];
        }
 }
        }
 }