BSD 4_3_Reno release
[unix-history] / usr / src / games / backgammon / teachgammon / data.c
index 9219afc..4418780 100644 (file)
@@ -1,12 +1,25 @@
 /*
  * Copyright (c) 1980 Regents of the University of California.
 /*
  * Copyright (c) 1980 Regents of the University of California.
- * All rights reserved.  The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that: (1) source distributions retain this entire copyright
+ * notice and comment, and (2) distributions including binaries display
+ * the following acknowledgement:  ``This product includes software
+ * developed by the University of California, Berkeley and its contributors''
+ * in the documentation or other materials provided with the distribution
+ * and in all advertising materials mentioning features or use of this
+ * software. Neither the name of the University nor the names of its
+ * contributors may 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 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)data.c     5.1 (Berkeley) %G%";
-#endif not lint
+static char sccsid[] = "@(#)data.c     5.4 (Berkeley) 6/1/90";
+#endif /* not lint */
 
 #include "tutor.h"
 
 
 #include "tutor.h"
 
@@ -191,98 +204,98 @@ char  *text23[] = {
 struct situatn  test[] = {
        {
                {0,2,0,0,0,0,-5,0,-3,0,0,0,5,-5,0,0,0,3,0,5,0,0,0,0,-2,0},
 struct situatn  test[] = {
        {
                {0,2,0,0,0,0,-5,0,-3,0,0,0,5,-5,0,0,0,3,0,5,0,0,0,0,-2,0},
-               3, 1, {8,6,0,0}, {5,5,0,0}, 4, 2, &text0
+               3, 1, {8,6,0,0}, {5,5,0,0}, 4, 2, text0
        },
        {
                {0,2,0,0,0,-2,-4,0,-2,0,0,0,5,-5,0,0,0,2,0,4,0,2,0,0,-2,0},
        },
        {
                {0,2,0,0,0,-2,-4,0,-2,0,0,0,5,-5,0,0,0,2,0,4,0,2,0,0,-2,0},
-               5, 5, {13,13,8,8}, {8,8,3,3}, 6, 6, &text1
+               5, 5, {13,13,8,8}, {8,8,3,3}, 6, 6, text1
        },
        {
                {0,0,0,-2,0,-2,-4,2,-2,0,0,0,3,-3,0,0,0,2,2,4,0,2,0,0,-2,0},
        },
        {
                {0,0,0,-2,0,-2,-4,2,-2,0,0,0,3,-3,0,0,0,2,2,4,0,2,0,0,-2,0},
-               6, 5, {13,8,0,0}, {8,2,0,0}, 1, 2, &text2
+               6, 5, {13,8,0,0}, {8,2,0,0}, 1, 2, text2
        },
        {
                {0,0,-1,-2,0,-2,-4,2,-2,0,0,0,2,-2,0,1,0,2,2,4,0,2,0,0,-2,0},
        },
        {
                {0,0,-1,-2,0,-2,-4,2,-2,0,0,0,2,-2,0,1,0,2,2,4,0,2,0,0,-2,0},
-               4, 5, {24,20,0,0}, {20,15,0,0}, 2, 5, &text3
+               4, 5, {24,20,0,0}, {20,15,0,0}, 2, 5, text3
        },
        {
                {0,0,0,-2,0,-2,-4,3,-2,0,0,0,2,-2,0,-1,0,2,2,4,0,2,0,0,-1,-1},
        },
        {
                {0,0,0,-2,0,-2,-4,3,-2,0,0,0,2,-2,0,-1,0,2,2,4,0,2,0,0,-1,-1},
-               2, 3, {25,24,0,0}, {22,22,0,0}, 4, 1, &text4
+               2, 3, {25,24,0,0}, {22,22,0,0}, 4, 1, text4
        },
        {
                {0,0,0,-2,0,-2,-4,2,-2,0,0,0,3,-2,0,-1,0,2,2,4,0,2,-2,0,0,0},
        },
        {
                {0,0,0,-2,0,-2,-4,2,-2,0,0,0,3,-2,0,-1,0,2,2,4,0,2,-2,0,0,0},
-               6, 1, {22,16,0,0}, {16,15,0,0}, 3, 3, &text5
+               6, 1, {22,16,0,0}, {16,15,0,0}, 3, 3, text5
        },
        {
                {0,0,0,-2,0,-2,-4,2,-2,0,0,0,3,-2,0,-2,0,0,2,2,2,2,2,0,0,-1},
        },
        {
                {0,0,0,-2,0,-2,-4,2,-2,0,0,0,3,-2,0,-2,0,0,2,2,2,2,2,0,0,-1},
-               3, 5, {0,0,0,0}, {0,0,0,0}, 5, 4, &text6
+               3, 5, {0,0,0,0}, {0,0,0,0}, 5, 4, text6
        },
        {
                {0,0,0,-2,0,-2,-4,1,-2,0,0,0,3,-2,0,-2,1,0,2,2,2,2,2,0,0,-1},
        },
        {
                {0,0,0,-2,0,-2,-4,1,-2,0,0,0,3,-2,0,-2,1,0,2,2,2,2,2,0,0,-1},
-               6, 6, {0,0,0,0}, {0,0,0,0}, 3, 6, &text7
+               6, 6, {0,0,0,0}, {0,0,0,0}, 3, 6, text7
        },
        {
                {0,0,0,-2,0,-2,-4,0,-2,0,0,0,3,-2,0,-2,2,0,2,2,2,2,2,0,0,-1},
        },
        {
                {0,0,0,-2,0,-2,-4,0,-2,0,0,0,3,-2,0,-2,2,0,2,2,2,2,2,0,0,-1},
-               2, 6, {25,23,0,0}, {23,17,0,0}, 5, 1, &text8
+               2, 6, {25,23,0,0}, {23,17,0,0}, 5, 1, text8
        },
        {
                {0,0,0,-2,0,-2,-4,0,-2,0,0,0,2,-2,0,-2,2,0,3,2,2,2,2,0,0,-1},
        },
        {
                {0,0,0,-2,0,-2,-4,0,-2,0,0,0,2,-2,0,-2,2,0,3,2,2,2,2,0,0,-1},
-               1, 1, {25,24,15,15}, {24,23,14,14}, 4, 6, &text9
+               1, 1, {25,24,15,15}, {24,23,14,14}, 4, 6, text9
        },
        {
                {0,0,0,-2,0,-2,-4,0,-2,0,0,0,0,-2,-2,0,3,0,4,2,2,2,2,-1,0,0},
        },
        {
                {0,0,0,-2,0,-2,-4,0,-2,0,0,0,0,-2,-2,0,3,0,4,2,2,2,2,-1,0,0},
-               6, 2, {23,17,0,0}, {17,15,0,0}, 1, 3, &text10
+               6, 2, {23,17,0,0}, {17,15,0,0}, 1, 3, text10
        },
        {
                {0,0,0,-2,0,-2,-4,0,-2,0,0,0,0,-2,-2,-1,2,0,3,4,2,2,2,0,0,0},
        },
        {
                {0,0,0,-2,0,-2,-4,0,-2,0,0,0,0,-2,-2,-1,2,0,3,4,2,2,2,0,0,0},
-               4, 3, {15,14,0,0}, {11,11,0,0}, 5, 3, &text11
+               4, 3, {15,14,0,0}, {11,11,0,0}, 5, 3, text11
        },
        {
                {0,0,0,-2,0,-2,-4,0,-2,0,0,-2,0,-2,-1,0,0,0,3,5,2,3,2,0,0,0},
        },
        {
                {0,0,0,-2,0,-2,-4,0,-2,0,0,-2,0,-2,-1,0,0,0,3,5,2,3,2,0,0,0},
-               6, 1, {14,13,0,0}, {8,12,0,0}, 4, 4, &text12
+               6, 1, {14,13,0,0}, {8,12,0,0}, 4, 4, text12
        },
        {
                {0,0,0,-2,0,-2,-4,0,-3,0,0,-2,-1,-1,0,0,0,0,0,5,2,2,5,0,0,0},
        },
        {
                {0,0,0,-2,0,-2,-4,0,-3,0,0,-2,-1,-1,0,0,0,0,0,5,2,2,5,0,0,0},
-               2, 1, {13,12,0,0}, {11,11,0,0}, 2, 1, &text13
+               2, 1, {13,12,0,0}, {11,11,0,0}, 2, 1, text13
        },
        {
                {0,0,0,-2,0,-2,-4,0,-3,0,0,-4,0,0,0,0,0,0,0,5,2,2,3,1,1,0},
        },
        {
                {0,0,0,-2,0,-2,-4,0,-3,0,0,-4,0,0,0,0,0,0,0,5,2,2,3,1,1,0},
-               2, 5, {8,11,0,0}, {6,6,0,0}, 6, 3, &text14
+               2, 5, {8,11,0,0}, {6,6,0,0}, 6, 3, text14
        },
        {
                {0,0,0,-2,0,-2,-6,0,-2,0,0,-3,0,0,0,0,0,0,0,4,2,2,2,1,1,0},
        },
        {
                {0,0,0,-2,0,-2,-6,0,-2,0,0,-3,0,0,0,0,0,0,0,4,2,2,2,1,1,0},
-               4, 3, {11,11,0,0}, {7,8,0,0}, 2, 5, &text15
+               4, 3, {11,11,0,0}, {7,8,0,0}, 2, 5, text15
        },
        {
                {0,0,0,-2,0,-2,-6,-1,-3,0,0,-1,0,0,0,0,0,0,0,4,1,2,2,0,1,0},
        },
        {
                {0,0,0,-2,0,-2,-6,-1,-3,0,0,-1,0,0,0,0,0,0,0,4,1,2,2,0,1,0},
-               2, 6, {8,11,0,0}, {6,5,0,0}, 6, 1, &text16
+               2, 6, {8,11,0,0}, {6,5,0,0}, 6, 1, text16
        },
        {
                {0,0,0,-2,0,-3,-7,-1,-2,0,0,0,0,0,0,0,0,0,0,3,1,2,2,0,0,0},
        },
        {
                {0,0,0,-2,0,-3,-7,-1,-2,0,0,0,0,0,0,0,0,0,0,3,1,2,2,0,0,0},
-               5, 3, {8,7,0,0}, {3,4,0,0}, 5, 2, &text17
+               5, 3, {8,7,0,0}, {3,4,0,0}, 5, 2, text17
        },
        {
                {0,0,0,-3,-1,-3,-7,0,-1,0,0,0,0,0,0,0,0,0,0,3,0,1,2,1,0,0},
        },
        {
                {0,0,0,-3,-1,-3,-7,0,-1,0,0,0,0,0,0,0,0,0,0,3,0,1,2,1,0,0},
-               3, 3, {8,3,3,3}, {5,0,0,0}, 1, 6, &text18
+               3, 3, {8,3,3,3}, {5,0,0,0}, 1, 6, text18
        },
        {
                {0,0,0,0,-1,-4,-7,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,2,1,0,0},
        },
        {
                {0,0,0,0,-1,-4,-7,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,2,1,0,0},
-               1, 4, {4,5,0,0}, {0,4,0,0}, 2, 3, &text19
+               1, 4, {4,5,0,0}, {0,4,0,0}, 2, 3, text19
        },
        {
                {0,0,0,0,-1,-3,-7,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0},
        },
        {
                {0,0,0,0,-1,-3,-7,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0},
-               5, 6, {6,5,0,0}, {0,0,0,0}, 1, 4, &text20
+               5, 6, {6,5,0,0}, {0,0,0,0}, 1, 4, text20
        },
        {
                {0,0,0,0,-1,-2,-6,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,0,0},
        },
        {
                {0,0,0,0,-1,-2,-6,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,0,0},
-               2, 4, {4,6,0,0}, {0,4,0,0}, 6, 2, &text21
+               2, 4, {4,6,0,0}, {0,4,0,0}, 6, 2, text21
        },
        {
                {0,0,0,0,-1,-2,-5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0},
        },
        {
                {0,0,0,0,-1,-2,-5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0},
-               3, 1, {4,3,0,0}, {3,0,0,0}, 4, 3, &text22
+               3, 1, {4,3,0,0}, {3,0,0,0}, 4, 3, text22
        },
        {
                {0,0,0,0,0,-2,-5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
        },
        {
                {0,0,0,0,0,-2,-5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-               0, 0, {0,0,0,0}, {0,0,0,0}, 0, 0, &text23
+               0, 0, {0,0,0,0}, {0,0,0,0}, 0, 0, text23
        }
 };
        }
 };