stellar

Stellar - UCI Chess engine written in C++20
git clone git://git.dimitrijedobrota.com/stellar.git
Log | Files | Refs | README | LICENSE

commit 85399aeb3071503a5c6706969eef8c56793be513
parent 3d9fb77e4f91af7bf2fc59cfb14c012007cb9ae0
Author: Dimitrije Dobrota <mail@dimitrijedobrota.com>
Date:   Sat, 29 Jul 2023 16:15:27 +0200

Rebrand

Diffstat:
MCMakeLists.txt | 6+++---
Msrc/engine.c | 18++++++------------
2 files changed, 9 insertions(+), 15 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -2,10 +2,10 @@ cmake_minimum_required(VERSION 3.25.2) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) project( - Engine + Stellar VERSION 0.0.0 - DESCRIPTION "Chess engine and utilities" - HOMEPAGE_URL https://git.dimitrijedobrota.com/engine.git + DESCRIPTION "Chess engine written in C" + HOMEPAGE_URL https://git.dimitrijedobrota.com/stellar.git LANGUAGES C ) diff --git a/src/engine.c b/src/engine.c @@ -249,7 +249,7 @@ void search_position(CBoard_T board, int depth) { } void print_info(void) { - printf("id name chessTrainer\n"); + printf("id name Stellar\n"); printf("id author Dimitrije Dobrota\n"); printf("uciok\n"); } @@ -360,7 +360,7 @@ CBoard_T Instruction_parse(Instruction_T self, CBoard_T board) { } else { printf("Unknown argument after position\n"); } - CBoard_print(board); + // CBoard_print(board); continue; } @@ -373,13 +373,13 @@ CBoard_T Instruction_parse(Instruction_T self, CBoard_T board) { printf("Invalid move %s!\n", token); } } - CBoard_print(board); + // CBoard_print(board); return board; } if (strcmp(token, "go") == 0) { token = Instruction_token_next(self); - int depth = 6; + int depth = 5; if (token && strcmp(token, "depth") == 0) { token = Instruction_token_next(self); depth = atoi(token); @@ -408,7 +408,7 @@ CBoard_T Instruction_parse(Instruction_T self, CBoard_T board) { void uci_loop(void) { CBoard_T board = NULL; Instruction_T instruction; - char input[2000]; + char input[200000]; setbuf(stdin, NULL); setbuf(stdout, NULL); @@ -437,12 +437,6 @@ void init_all() { int main(void) { init_all(); - - CBoard_T board = NULL; - board = CBoard_fromFEN(board, tricky_position); - CBoard_print(board); - // perft_test(board, 6); - perft_test_threaded(board, 5); - CBoard_free(&board); + uci_loop(); return 0; }