summaryrefslogtreecommitdiff
path: root/src/uci
diff options
context:
space:
mode:
Diffstat (limited to 'src/uci')
-rw-r--r--src/uci/response.c6
-rw-r--r--src/uci/state.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/uci/response.c b/src/uci/response.c
index a7e53fd..83a8ee1 100644
--- a/src/uci/response.c
+++ b/src/uci/response.c
@@ -3,8 +3,8 @@
#include <stdlib.h>
#include "response.h"
-#include "fen.h"
-#include "bitboard.h"
+#include "../fen.h"
+#include "../bitboard.h"
void apply_option(uci_state *state, char *name, char *buffer) {
int settings_count = sizeof(state->option_settings)/sizeof(option_setting_t);
@@ -151,7 +151,7 @@ void handle_idle(uci_state *state, ucicmd cmd) {
} else { assert(0); }
if (cmd.args_count >= k) return;
- assert(ucicmd_get_arg(cmd, k++), "moves") == 0);
+ assert(strcmp(ucicmd_get_arg(cmd, k++), "moves") == 0);
struct uci_move *moves = malloc((cmd.args_count - k) * sizeof(struct uci_move));
int l = 0;
for (; k < cmd.args_count; k++) {
diff --git a/src/uci/state.h b/src/uci/state.h
index cb0d63f..849a08a 100644
--- a/src/uci/state.h
+++ b/src/uci/state.h
@@ -1,7 +1,7 @@
#ifndef UCI_STATE_H
#define UCI_STATE_H
-#include "engine/fen.h"
+#include "../fen.h"
typedef struct {
char* data;