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) + 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.