/*
**  bigmap.h - definitions used by bmap and the autorouting routines
**
**  3/22/91 bf@hp
*/

#define ASIZE			(WORLD_X/2)
#define BSIZE   		WORLD_Y
#define MAXROUTE		300	/* return '?' if path is longer */

#define WORLDSIZE		(ASIZE*BSIZE)
#define normalize(i,j)		((i+j)%j)
#define valid(x,y)		((((x)^(y))&1)==0)
/* #define index(x,y)		((x/2)*BSIZE+(y)) */
#define mindex(x,y)		((x/2) + (y*ASIZE))
#define stype(x,y)   		bigmap[mindex(x,y)]

#define BMAP_MINE_CHAR		'@'
#define BMAP_MINE_TOGGLE	'~'

