|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T o
Length: 1333 (0x535) Types: TextFile Names: »othello.h«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/Sun/Othello/othello.h«
/* othello.h * * Definitions used by the Sun Othello game. */ #include <stdio.h> #include <strings.h> #include <suntool/sunview.h> #include <suntool/panel.h> #include <suntool/canvas.h> #define panel_msg(s) (void) panel_set(panel_mes,PANEL_LABEL_STRING,s,0) #define remark_msg(s) (void) panel_set(remark_mes,PANEL_LABEL_STRING,s,0) #define score_msg(s) (void) panel_set(score_mes,PANEL_LABEL_STRING,s,0) #define BOARDSIZE 8 /* 8x8 playing board */ #define RCLR PIX_CLR /* Rasterop operations. */ #define RSRC PIX_SRC #define RINV PIX_SRC ^ PIX_DST #define BLACK 1 /* Piece definitions. */ #define FREE 0 #define WHITE -1 #define FOR_BOARD(i) for (i = 0; i < 64; i++) #define INFINITY 10000 #define INIT_ASPIRE 3 #define INIT_DEPTH 2 #define ISMOVE(pos,player) \ (nextmove(pos,NOMOVE,(BOARD *) NULL, player) != NOMOVE) #define MAXASPIRE 6 #define MAXDEPTH 6 #define NOMOVE -1 #define OPPONENT(p) p * -1 #define PAUSE(i) for (i = 0; i < 150000; i++) #define VINVUL 50 #define MAX_REMARKS 50 #define FIRST_REMARK (INFINITY+1) #define LIBPATH(l,c) l/c" typedef struct { char SQUARE[64] ; int MOVES_LEFT ; } BOARD ;