This is the doxygen documentation for gtkboard.

.
Main Page   Data Structures   File List   Data Fields   Globals  

rgb.c File Reference

#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 RGB_CELL_SIZE   55
#define RGB_NUM_PIECES   3
#define RGB_BOARD_WID   3
#define RGB_BOARD_HEIT   3
#define RGB_RP   1
#define RGB_GP   2
#define RGB_BP   3
#define RGB_EMPTY   0

Functions

void rgb_init ()
int rgb_getmove (Pos *, int, int, GtkboardEventType, Player, byte **, int **)
ResultType rgb_who_won (Pos *, Player, char **)
void rgb_set_init_pos (Pos *pos)
byte* rgb_movegen (Pos *)
ResultType rgb_eval (Pos *, Player, float *eval)
unsigned char* rgb_get_rgbmap (int idx, int color)

Variables

char rgb_colors [9] = {200, 200, 200, 200, 200, 200, 0, 0, 0}
int* rgb_init_pos = NULL
Game Rgb


Define Documentation

#define RGB_BOARD_HEIT   3
 

Definition at line 31 of file rgb.c.

#define RGB_BOARD_WID   3
 

Definition at line 30 of file rgb.c.

#define RGB_BP   3
 

Definition at line 35 of file rgb.c.

#define RGB_CELL_SIZE   55
 

Definition at line 27 of file rgb.c.

#define RGB_EMPTY   0
 

Definition at line 36 of file rgb.c.

#define RGB_GP   2
 

Definition at line 34 of file rgb.c.

#define RGB_NUM_PIECES   3
 

Definition at line 28 of file rgb.c.

#define RGB_RP   1
 

Definition at line 33 of file rgb.c.


Function Documentation

ResultType rgb_eval ( Pos * pos,
Player to_play,
float * eval ) [static]
 

Definition at line 195 of file rgb.c.

unsigned char* rgb_get_rgbmap ( int idx,
int color ) [static]
 

Definition at line 178 of file rgb.c.

int rgb_getmove ( Pos * pos,
int x,
int y,
GtkboardEventType type,
Player to_play,
byte ** movp,
int ** rmovep ) [static]
 

Definition at line 161 of file rgb.c.

void rgb_init ( void )
 

Definition at line 58 of file rgb.c.

byte* rgb_movegen ( Pos * pos ) [static]
 

Definition at line 86 of file rgb.c.

void rgb_set_init_pos ( Pos * pos ) [static]
 

Definition at line 79 of file rgb.c.

ResultType rgb_who_won ( Pos * pos,
Player to_play,
char ** commp ) [static]
 

Definition at line 129 of file rgb.c.


Variable Documentation

Game Rgb
 

Initial value:

 { RGB_CELL_SIZE, RGB_BOARD_WID, RGB_BOARD_HEIT, 
        RGB_NUM_PIECES,
        rgb_colors,  NULL, NULL, "Rgb", rgb_init}

Definition at line 44 of file rgb.c.

char rgb_colors[9] = {200, 200, 200, 200, 200, 200, 0, 0, 0}
 

Definition at line 38 of file rgb.c.

int* rgb_init_pos = NULL
 

Definition at line 40 of file rgb.c.