diff options
Diffstat (limited to 'src/ctaklm.c')
| -rw-r--r-- | src/ctaklm.c | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/src/ctaklm.c b/src/ctaklm.c index 5dd4164..c395c29 100644 --- a/src/ctaklm.c +++ b/src/ctaklm.c @@ -421,17 +421,25 @@ main(int argc, char **argv) { negamax_init(5); tt_init(); + auto_board = 1; + auto_info = 0; + negamax_search_depth = 4; + for (int k=0; k<10; k++) negamax_turn(); + return 0; + + ply = 7; current_colour=C_BLACK; + celldat[0x00]=0x22; colours[0x00]=0x05; + celldat[0x01]=0x10; colours[0x01]=0x00; + celldat[0x02]=0x11; colours[0x02]=0x00; + print_board(); - /* - * celldat[0x16]=0x30; - * colours[0x16]=4; - * print_board(); - * - * action_list_t a = {.next = NULL, .type = A_MOVE, .loc = 0x16, .data0 = 0x1, .data1 = 0x12}; - * action_take(&a); print_board(); - * action_undo(&a); print_board(); - * return 0; - */ + action_list_t *list = action_list_generate(); + + + action_node_t a = {.next = NULL, .type = A_MOVE, .loc = 0x0, .data0 = 0x80, .data1 = 0x31}; + action_take(&a); print_board(); + action_undo(&a); print_board(); + return 0; // Test harness |
