oakwoodtable / cyberbiology3 Goto Github PK
View Code? Open in Web Editor NEWArtificial evolution, made with C++
License: GNU General Public License v3.0
Artificial evolution, made with C++
License: GNU General Public License v3.0
Can't build source code because files MyTypes.h and MyTypes.cpp not present in source directory.
Нужна подробная инструкция по сборке проекта. Я пробовал собирать в Ubuntu и Visual Studio. После долгих танцев с бубном
в Ubuntu wsl2 у меня следующая ошибка
(base) windows@AndreyK-PC:~/CyberBiology3/build$ cmake --build . Scanning dependencies of target CyberBiology [ 3%] Building CXX object CMakeFiles/CyberBiology.dir/imgui/backends/imgui_impl_sdl.cpp.o /home/windows/CyberBiology3/imgui/backends/imgui_impl_sdl.cpp:70:10: fatal error: SDL.h: No such file or directory 70 | #include "SDL.h" | ^~~~~~~ compilation terminated. make[2]: *** [CMakeFiles/CyberBiology.dir/build.make:141: CMakeFiles/CyberBiology.dir/imgui/backends/imgui_impl_sdl.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/CyberBiology.dir/all] Error 2 make: *** [Makefile:84: all] Error 2
VisualStudio 2022
`Серьезность Код Описание Проект Файл Строка Состояние подавления
Ошибка CMake Error at C:\temp\CyberBiology3-main\CMakeLists.txt:123 (find_package):
Could not find a package configuration file provided by "SDL3" with any of
the following names:
SDL3Config.cmake
sdl3-config.cmake
Add the installation prefix of "SDL3" to CMAKE_PREFIX_PATH or set
"SDL3_DIR" to a directory containing one of the above files. If "SDL3"
provides a separate development package or SDK, be sure it has been
installed. CyberBiology C:\temp\CyberBiology3-main\CMakeLists.txt 123
`
Хотелось бы немного поучаствовать в проекте, но на этих проблемах уже много времени потерял.
С уважением ...
Здравствуйте, я не знаю язык c++, пытаясь много времени запустить программу у меня не получалось, и окончательно отчаявшись хочу спросить, в языке Java есть готовые файлы jar, есть ли такие на c++? если да то можно ли их выложить сюда, что бы не мучаться со всеми этими библиотеками и Visual Studio, если нет то можно ли скинуть архив со всеми нужными файлами пожалуйста?
`BrainInput Bot::FillBrainInput()
{
BrainInput input;
input.energy=(float)energy/(float)MaxPossibleEnergyForABot;
//If destination is out of bounds
if (!pField->IsInBounds(lookAt_x, lookAt_y))
Добавил изменения ... Еще вопрос, как по человечески передать значение текущего сезона в функцию фотосинтез
void Bot::Photosynthesis()
{
//Above water
if (!pField->IsInWater(y))
{
int toGive;
//Give energy depending on a season
switch (season)
{
case summer:
#ifdef UseSeasons
toGive = PhotosynthesisReward_Summer;
#else
toGive = pField->photosynthesisReward;
//toGive = FindHowManyFreeCellsAround(x, y) - 3;
//if (toGive < 0) toGive = 0;
#endif
break;`
Тот сезон, который тут упоминается, никогда не меняется и не связон, с тем, который переключается ... Надеюсь понятно объяснил ...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.