| My Project
    | 
Go to the source code of this file.
| Classes | |
| struct | Move | 
| struct | MoveList | 
| struct | Line | 
| struct | MoveHash | 
| Macros | |
| #define | foreach_move(iter, movelist) for ((iter) = (movelist)->move->next; (iter); (iter) = (iter)->next) | 
| #define | foreach_best_move(iter, movelist) for ((iter) = movelist_best(movelist); (iter); (iter) = move_next_best(iter)) | 
| Typedefs | |
| typedef struct Move | Move | 
| typedef struct MoveList | MoveList | 
| typedef struct Line | Line | 
| typedef struct MoveHash | MoveHash | 
| Functions | |
| int | symetry (int, const int) | 
| Get a symetric square coordinate.  More... | |
| void | move_print (const int, const int, FILE *) | 
| Print out a move.  More... | |
| bool | move_wipeout (const Move *, const struct Board *) | 
| Move * | move_next_best (Move *) | 
| Return the next best move from the list.  More... | |
| Move * | move_next (Move *) | 
| Return the next move from the list.  More... | |
| char * | move_to_string (const int, const int, char *) | 
| Print out a move.  More... | |
| void | tune_move_evaluate (struct Search *, const char *, const char *) | 
| int | movelist_get_moves (MoveList *, const struct Board *) | 
| void | movelist_print (const MoveList *, const int, FILE *) | 
| Print out a movelist.  More... | |
| Move * | movelist_sort_bestmove (MoveList *, const int) | 
| Sort a move as best.  More... | |
| void | movelist_evaluate (MoveList *, struct Search *, const struct HashData *, const int, const int) | 
| void | movelist_evaluate_fast (MoveList *, struct Search *) | 
| Move * | movelist_best (MoveList *) | 
| Return the best move of the list.  More... | |
| Move * | movelist_first (MoveList *) | 
| Return the first move of the list.  More... | |
| Move * | movelist_exclude (MoveList *, const int) | 
| Exclude a move.  More... | |
| void | movelist_restore (MoveList *, Move *) | 
| void | movelist_sort (MoveList *) | 
| Sort all moves.  More... | |
| void | movelist_sort_cost (MoveList *, const struct HashData *) | 
| bool | movelist_is_empty (const MoveList *) | 
| Check if the list is empty.  More... | |
| bool | movelist_is_single (const MoveList *) | 
| void | line_init (Line *, const int) | 
| Initialize a sequence of moves.  More... | |
| void | line_push (Line *, const int) | 
| Add a move to the sequence.  More... | |
| void | line_pop (Line *) | 
| Remove the last move from a sequence.  More... | |
| void | line_copy (Line *, const Line *, const int) | 
| Copy part of a sequence to another sequence.  More... | |
| void | line_print (const Line *, int, const char *, FILE *) | 
| Print a move sequence.  More... | |
| char * | line_to_string (const Line *line, int n, const char *, char *string) | 
| Line to string.  More... | |
| void | movehash_init (MoveHash *, int) | 
| Initialisation of the hash table.  More... | |
| void | movehash_delete (MoveHash *) | 
| Free the hash table.  More... | |
| bool | movehash_append (MoveHash *, const struct Board *, const int) | 
| Variables | |
| const Move | MOVE_INIT | 
| const Move | MOVE_PASS | 
| #define foreach_best_move | ( | iter, | |
| movelist | |||
| ) | for ((iter) = movelist_best(movelist); (iter); (iter) = move_next_best(iter)) | 
macro to iterate over the movelist from best to worst move
| #define foreach_move | ( | iter, | |
| movelist | |||
| ) | for ((iter) = (movelist)->move->next; (iter); (iter) = (iter)->next) | 
macro to iterate over the movelist
Copy part of a sequence to another sequence.
| dest | the destination move sequence. | 
| src | the source move sequence. | 
| from | the point to copy from. | 
| void line_init | ( | Line * | line, | 
| const int | player | ||
| ) | 
Initialize a sequence of moves.
| line | the move sequence. | 
| player | color of the first player of the sequence. | 
| void line_pop | ( | Line * | line | ) | 
Remove the last move from a sequence.
| line | the move sequence. | 
| void line_print | ( | const Line * | line, | 
| int | width, | ||
| const char * | separator, | ||
| FILE * | f | ||
| ) | 
Print a move sequence.
| line | the move sequence. | 
| width | width of the line to print (in characters). | 
| separator | a string to print between moves. | 
| f | output stream. | 
| void line_push | ( | Line * | line, | 
| const int | x | ||
| ) | 
Add a move to the sequence.
| line | the move sequence. | 
| x | move coordinate. | 
| char * line_to_string | ( | const Line * | line, | 
| int | n, | ||
| const char * | separator, | ||
| char * | string | ||
| ) | 
Line to string.
| line | the move sequence. | 
| n | number of moves to add. | 
| separator | a string to print between moves. | 
| string | output string receiving the line. | 
Return the next move from the list.
| move | previous move. | 
Return the next best move from the list.
| previous_best | Last best move. | 
| void move_print | ( | const int | x, | 
| const int | player, | ||
| FILE * | f | ||
| ) | 
Print out a move.
Print the move, using letter case to distinguish player's color, to an output stream.
| x | square coordinate to print. | 
| player | player color. | 
| f | output stream. | 
| char * move_to_string | ( | const int | x, | 
| const int | player, | ||
| char * | s | ||
| ) | 
Print out a move.
Print the move, using letter case to distinguish player's color, to an output stream.
| x | Square coordinate to print. | 
| player | Player color. | 
| s | Output string. | 
| void movehash_init | ( | MoveHash * | hash, | 
| int | bitsize | ||
| ) | 
Return the best move of the list.
| movelist | The list of move. | 
| void movelist_evaluate | ( | MoveList * | , | 
| struct Search * | , | ||
| const struct HashData * | , | ||
| const int | , | ||
| const int | |||
| ) | 
Exclude a move.
| movelist | List of moves to sort. | 
| move | Move to exclude. | 
Return the first move of the list.
| movelist | The list of move. | 
| bool movelist_is_empty | ( | const MoveList * | movelist | ) | 
Check if the list is empty.
| movelist | The list of move. | 
| bool movelist_is_single | ( | const MoveList * | ) | 
| void movelist_print | ( | const MoveList * | movelist, | 
| const int | player, | ||
| FILE * | f | ||
| ) | 
Print out a movelist.
Print the moves, using letter case to distinguish player's color, to an output stream.
| movelist | a list of moves. | 
| player | player color. | 
| f | output stream. | 
| void movelist_sort | ( | MoveList * | movelist | ) | 
Sort all moves.
| movelist | List of moves to sort. | 
Sort a move as best.
Put the best move at the head of the list.
| movelist | List of moves to sort. | 
| move | Best move to to set first. | 
| int symetry | ( | int | x, | 
| const int | sym | ||
| ) | 
Get a symetric square coordinate.
| x | Square coordinate. | 
| sym | Symetry. | 
| void tune_move_evaluate | ( | struct Search * | , | 
| const char * | , | ||
| const char * | |||
| ) | 
| 
 | extern | 
| 
 | extern |