aboutsummaryrefslogtreecommitdiff
path: root/src/ctaklm.c
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-01-25 22:23:38 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commitc69c764a2202d745a3672a92bcb40ea180bd9740 (patch)
treeab159882d749d352af9c3f3b64513aad8a0e6a37 /src/ctaklm.c
parent8418ddf3187ec0f526ef5d8dbb0689fc786fac92 (diff)
Still bugs...
Diffstat (limited to 'src/ctaklm.c')
-rw-r--r--src/ctaklm.c28
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