/*
 *
 * scrab.h -- constants and structures
 *
 */

#include <curses.h>
#include <string.h>
#include <sys/time.h>

#define SKILL_LEVELS	5
#define SKILL_EXPERT	( SKILL_LEVELS + 1 )

#define CH_EM			'.'
#define CH_DL			'+'
#define CH_TL			'#'
#define CH_DW			'0'
#define CH_TW			'@'
#define CH_BL			'*'
#define CH_IT			'_'

#define BOARD_UY		2
#define BOARD_LY		16
#define BOARD_LX		34
#define BOARD_RX		48
#define INFO_Y			2
#define INFO_X			0
#define TILE_RACKS_Y	2
#define TILE_RACKS_X	54
#define TILES_LEFT_Y	0
#define TILES_LEFT_X	57
/* #define PRINT_CPU_TILES */


/* sxangxu cxi tiu difinon por uzi alian vortaron, ekzemple: */
/* #define DICT_FILE		"/home/contrib/lib/scrabbledict" */
/* #define DICT_FILE		"/home/contrib/lib/skrablovortaro" */
#define DICT_FILE		"/mit/esperanto/src/scrabble/skrablovortaro"


struct another_word {
	int startx;
	int starty;
	int dir;
	int length;
	int blankloc;
	int score;
	char letters[16];
};

struct plrlet {
	int x;
	int y;
	char letter;
	char blankchar;
	char oldlet;
	int tilepos;
};

typedef struct cm {
	struct cm *next;
	struct plrlet newlet[7];
	int placed;
	int dir;
	int score;
} compmove;

#define CM_SIZE		( sizeof( compmove ) )

typedef struct sc {
	struct sc *next;
	int score;
	int num;
} scoreent;

#define SC_SIZE		( sizeof( scoreent ) )

struct let_distrib {
	int tiles;
	int points;
};
