/*
 * File: global.c
 *
 * This file contains all global variables needed in GNU Othello.
 */

#include "othello.h"

/*
 * The 'all_directions' array holds one entry for each of the 8
 * directions.
 */
int    all_directions[] = {
      9,  10, 11,
     -1, /**/  1,
    -11, -10, -9
};


/*
 * The 'directions' array holds one entry for each of the 4
 * principal directions.
 */
int    directions[] = {
    -11, -10, -9, -1
};



/* Pointer to the name of the program. This variable is set in main(). */
char   *progname;


/* The color (WHITE/BLACK) of the computer and the human player. */
Color   mycolor;
Color   yourcolor;


/*
 * TRUE if a game is in progress. This variable is used by the SUNVIEW
 * interface for governing which buttons are legal to press at a given
 * time.
 */
bool    game_in_progress;


/* Level of play. */
int     level;
