From f3ddd749f502eeca1988f0d17b07408a2b949d13 Mon Sep 17 00:00:00 2001 From: stalker320 <40300537+stalker57241@users.noreply.github.com> Date: Tue, 4 Aug 2026 23:54:16 +0300 Subject: [PATCH 1/2] Update CMakeLists.txt Separated library logic, and program logic. --- CMakeLists.txt | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e4cf6a..1865f29 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,17 @@ cmake_minimum_required(VERSION 3.10) -project(snake LANGUAGES C) +project(applicant LANGUAGES C) # find_package(ncurses REQUIRED) -add_executable(snake src/main.c +# TODO: Find a way to check or autoinstall ncurses on Windows +add_executable(fieldgame + src/main.c + src/bot.c +) +add_library(applicant src/applicant.c - src/bot.c) -target_include_directories(snake PUBLIC $) -target_link_libraries(snake ncurses) +) +target_include_directories(fieldgame PUBLIC $) +target_include_directories(applicant PUBLIC $) +target_link_libraries(fieldgame ncurses applicant) + From 47334f8ae942c198514b21fbb7ec1a8515f71a52 Mon Sep 17 00:00:00 2001 From: stalker320 <40300537+stalker57241@users.noreply.github.com> Date: Tue, 4 Aug 2026 23:59:44 +0300 Subject: [PATCH 2/2] Create README.md --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..6cb19ce --- /dev/null +++ b/README.md @@ -0,0 +1,30 @@ +# applicant + +Library to create programs with genetic algorithms. + +# Requirements + +- PC + Monitor + Keyboard + Mouse +- Mind + Straight hands +- NCurses (For fieldgame) +- C compiler (GCC/Clang/e.t.c.) +- CMake 3.10+ + +# Build + +```sh +mkdir build +cd build +cmake .. +cd .. +cmake --build build +``` + +CROSSPLATFORM EXECUTION (Works on `Linux`, maybe work on `Windows`, if you installed `CMake` directly to `CMD`, or `powershell`, and there is ncurses) + +# Run + +```sh +build/fieldgame +``` +Or `Double LMB` on `fieldgame`(`fieldgame.exe` on windows) file at build folder.