board_master.h

dw_fluffos_v1/lib/include/board_master.h · 1014 B

From the archive dw_fluffos_v1.tar.gz

Download the archive   « Back to the archive contents

#define MAX_PAGE ((int)this_player()->query_rows()-3)
#define TP_NAME this_player()->query_name()
/* this will be a handler object... */
#define SAVE_FILE "/w/pinkfish/save/board_master"
#define BOARD_THING "/w/pinkfish/getter_master"
#define REV_BOARD "/w/pinkfish/reversi_rules"

/* used by the board getter */
#define REVERSI_OB "/w/pinkfish/board_master"
#define BOARD_PATH "/w/pinkfish/save/master/"

/* should be two weeks */
#define MIN_TIME (60*60*24*14)

#undef DEBUG
#undef DEBUG2

#define MAX_GAMES 10

#define R_PLAYER1 0
#define R_PLAYER2 1
/* This is a board number.  A offset to the board save file.
 */
#define R_BOARD 2
#define R_MOVE_NO 3
/* last move.  Saved for timeouts. */
#define R_LAST 4
#define R_LASTX 5
#define R_LASTY 6
#define R_TYPE 7

#define BOARD_COL "%^B_GREEN%^%^WHITE%^"
#define BLACK_COL "%^B_BLACK%^"
#define WHITE_COL "%^B_WHITE%^"
#define END_TILE  "%^B_GREEN%^"
#define RESET     "%^RESET%^"
#define SETUP_COL "%^B_CYAN%^"

#define P1_WON 1
#define P2_WON 2
#define DRAW 3

Site Stats

Snippets: 1791
Codebases: 571