xref: /original-bsd/games/cribbage/cribcur.h (revision ad93c43e)
1 /*
2  * Copyright (c) 1980 Regents of the University of California.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms are permitted
6  * provided that this notice is preserved and that due credit is given
7  * to the University of California at Berkeley. The name of the University
8  * may not be used to endorse or promote products derived from this
9  * software without specific prior written permission. This software
10  * is provided ``as is'' without express or implied warranty.
11  *
12  *	@(#)cribcur.h	5.2 (Berkeley) 03/10/88
13  */
14 
15 # define	PLAY_Y		15	/* size of player's hand window */
16 # define	PLAY_X		12
17 # define	TABLE_Y		21	/* size of table window */
18 # define	TABLE_X		14
19 # define	COMP_Y		15	/* size of computer's hand window */
20 # define	COMP_X		12
21 # define	Y_SCORE_SZ	9	/* Y size of score board */
22 # define	X_SCORE_SZ	41	/* X size of score board */
23 # define	SCORE_Y		0	/* starting position of scoring board */
24 # define	SCORE_X	 	(PLAY_X + TABLE_X + COMP_X)
25 # define	CRIB_Y		17	/* position of crib (cut card) */
26 # define	CRIB_X		(PLAY_X + TABLE_X)
27 # define	MSG_Y		(LINES - (Y_SCORE_SZ + 1))
28 # define	MSG_X		(COLS - SCORE_X - 1)
29 # define	Y_MSG_START	(Y_SCORE_SZ + 1)
30 
31 # define	PEG	'*'	/* what a peg looks like on the board */
32 
33 extern	WINDOW		*Compwin;		/* computer's hand window */
34 extern	WINDOW		*Msgwin;		/* message window */
35 extern	WINDOW		*Playwin;		/* player's hand window */
36 extern	WINDOW		*Tablewin;		/* table window */
37