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 | QUARTO_CELL_SIZE 60 |
| #define | QUARTO_NUM_PIECES 17 |
| #define | QUARTO_BOARD_WID 9 |
| #define | QUARTO_BOARD_HEIT 4 |
| #define | QUARTO_EMPTY 0 |
| #define | QUARTO_SEPARATOR 17 |
| #define | QUARTO_SHAPE_MASK (1 << 0) |
| #define | QUARTO_SIZE_MASK (1 << 1) |
| #define | QUARTO_HOLE_MASK (1 << 2) |
| #define | QUARTO_COLOR_MASK (1 << 3) |
| #define | QUARTO_ALL_PIECES_MASK (QUARTO_SHAPE_MASK | QUARTO_SIZE_MASK | QUARTO_HOLE_MASK | QUARTO_COLOR_MASK) |
Functions | |
| void | quarto_init () |
| int | quarto_getmove (Pos *, int, int, GtkboardEventType, Player, byte **, int **) |
| ResultType | quarto_who_won (Pos *, Player, char **) |
| byte* | quarto_movegen (Pos *) |
| ResultType | quarto_eval (Pos *, Player, float *eval) |
| void | quarto_reset_uistate (Pos *pos) |
| unsigned char* | quarto_get_rgbmap (int idx, int color) |
| void | quarto_get_render (Pos *pos, byte *move, int **rmovp) |
| gboolean | eval_column (byte *board, int x, int y, int incx, int incy) |
Variables | |
| char | quarto_colors [9] = {200, 200, 200, 200, 200, 200, 0, 0, 0} |
| char | quarto_highlight_colors [9] = {0, 0xff, 0, 0, 0, 0, 0, 0, 0} |
| int | quarto_init_pos [QUARTO_BOARD_HEIT *QUARTO_BOARD_WID] |
| Game | Quarto |
| int | cur_piece = -1 |
| int | curx = -1 |
| int | cury = -1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 105 of file quarto.c. Referenced by quarto_eval(). |
|
|
Definition at line 126 of file quarto.c. Referenced by quarto_who_won(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Initial value: { QUARTO_CELL_SIZE, QUARTO_BOARD_WID, QUARTO_BOARD_HEIT,
QUARTO_NUM_PIECES,
quarto_colors, quarto_init_pos, NULL, "Quarto", quarto_init} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Initial value:
{
0, 0, 0, 0, 17, 1, 2, 3, 4,
0, 0, 0, 0, 17, 5, 6, 7, 8,
0, 0, 0, 0, 17, 9, 10, 11, 12,
0, 0, 0, 0, 17, 13, 14, 15, 16,
} |