more cleanup; sail, driver, sail.log merged into single program
[unix-history] / usr / src / games / cribbage / cribcur.h
index ae58ee3..a1da88e 100644 (file)
@@ -1,17 +1,20 @@
+/* @(#)cribcur.h       1.5 (Berkeley) %G% */
+
 # define       PLAY_Y          15      /* size of player's hand window */
 # define       PLAY_X          12
 # define       TABLE_Y         21      /* size of table window */
 # define       TABLE_X         14
 # define       COMP_Y          15      /* size of computer's hand window */
 # define       COMP_X          12
 # define       PLAY_Y          15      /* size of player's hand window */
 # define       PLAY_X          12
 # define       TABLE_Y         21      /* size of table window */
 # define       TABLE_X         14
 # define       COMP_Y          15      /* size of computer's hand window */
 # define       COMP_X          12
-# define       SCORE_Y         0       /* starting position of scoring board */
-# define       SCORE_X         0
-# define       Y_SCORE_SZ      11      /* X size of score board */
+# define       Y_SCORE_SZ      9       /* Y size of score board */
 # define       X_SCORE_SZ      41      /* X size of score board */
 # define       X_SCORE_SZ      41      /* X size of score board */
+# define       SCORE_Y         0       /* starting position of scoring board */
+# define       SCORE_X         (PLAY_X + TABLE_X + COMP_X)
 # define       CRIB_Y          17      /* position of crib (cut card) */
 # define       CRIB_Y          17      /* position of crib (cut card) */
-# define       CRIB_X          (PLAY_X + TABLE_X + X_SCORE_SZ)
+# define       CRIB_X          (PLAY_X + TABLE_X)
 # define       MSG_Y           (LINES - (Y_SCORE_SZ + 1))
 # define       MSG_Y           (LINES - (Y_SCORE_SZ + 1))
-# define       MSG_X           X_SCORE_SZ
+# define       MSG_X           (COLS - SCORE_X - 1)
+# define       Y_MSG_START     (Y_SCORE_SZ + 1)
 
 # define       PEG     '*'     /* what a peg looks like on the board */
 
 
 # define       PEG     '*'     /* what a peg looks like on the board */