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 | ATAXX_CELL_SIZE 55 |
| #define | ATAXX_NUM_PIECES 2 |
| #define | ATAXX_BOARD_WID 7 |
| #define | ATAXX_BOARD_HEIT 7 |
| #define | ATAXX_EMPTY 0 |
| #define | ATAXX_WP 1 |
| #define | ATAXX_BP 2 |
| #define | ATAXX_MOVEGEN_PLAUSIBLE 1 |
Functions | |
| void | ataxx_init () |
| ResultType | ataxx_eval (Pos *, Player, float *) |
| byte* | ataxx_movegen (Pos *) |
| int | ataxx_getmove (Pos *, int, int, GtkboardEventType, Player, byte **, int **) |
| ResultType | ataxx_who_won (Pos *, Player, char **) |
| unsigned char* | ataxx_get_rgbmap (int, int) |
| void | ataxx_reset_uistate () |
Variables | |
| char | ataxx_colors [6] = {140, 160, 140, 200, 200, 200} |
| int | ataxx_init_pos [ATAXX_BOARD_WID *ATAXX_BOARD_HEIT] |
| Game | Ataxx |
| int | ataxx_max_moves = 200 |
| int | oldx = -1 |
| int | oldy = -1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 156 of file ataxx.c. Referenced by ataxx_who_won(). |
|
|
|
|
|
|
|
|
Initial value: { ATAXX_CELL_SIZE, ATAXX_BOARD_WID, ATAXX_BOARD_HEIT,
ATAXX_NUM_PIECES,
ataxx_colors, ataxx_init_pos, NULL, "Ataxx", ataxx_init} |
|
|
|
|
|
Initial value:
{
1 , 0 , 0 , 0 , 0 , 0 , 2 ,
0 , 0 , 0 , 0 , 0 , 0 , 0 ,
0 , 0 , 0 , 0 , 0 , 0 , 0 ,
0 , 0 , 0 , 0 , 0 , 0 , 0 ,
0 , 0 , 0 , 0 , 0 , 0 , 0 ,
0 , 0 , 0 , 0 , 0 , 0 , 0 ,
2 , 0 , 0 , 0 , 0 , 0 , 1 ,
} |
|
|
|
|
|
|
|
|
|