This is the doxygen documentation for gtkboard.
.#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include "game.h"
#include "aaball.h"
Go to the source code of this file.
Defines | |
#define | PLOT4_CELL_SIZE 55 |
#define | PLOT4_NUM_PIECES 3 |
#define | PLOT4_BOARD_WID 7 |
#define | PLOT4_BOARD_HEIT 6 |
#define | PLOT4_WP 1 |
#define | PLOT4_BP 2 |
#define | PLOT4_EMPTY 3 |
Functions | |
void | plot4_init () |
int | eval_runs (Pos *, int) |
int | find_runs (byte *, int, int, int, int, int, int) |
int | plot4_getmove (Pos *, int, int, GtkboardEventType, Player, byte **, int **) |
ResultType | plot4_who_won (Pos *, Player, char **) |
void | plot4_set_init_pos (Pos *pos) |
char** | plot4_get_pixmap (int, int) |
byte* | plot4_movegen (Pos *) |
movegen function. | |
ResultType | plot4_eval (Pos *, Player, float *) |
int | plot4_islegal (byte *board, int x, int y) |
byte* | plot4_movegen_single (char *pos, int player, int reset) |
Variables | |
char | plot4_colors [6] = {160, 140, 100, 160, 140, 100} |
int* | plot4_init_pos = NULL |
Game | Plot4 |
const int | RUN_WT = 20 |
Definition in file plot4.c.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 169 of file plot4.c. Referenced by plot4_eval(), and plot4_who_won(). |
|
Definition at line 195 of file plot4.c. Referenced by eval_runs(). |
|
|
|
|
|
|
|
|
|
|
|
movegen function.
|
|
|
|
|
|
|
|
Initial value: { PLOT4_CELL_SIZE, PLOT4_BOARD_WID, PLOT4_BOARD_HEIT, PLOT4_NUM_PIECES, plot4_colors, NULL, NULL, "Plot4", plot4_init} |
|
|
|
|
|
|