This repository holds almost all of my seedfinding-related files and code.
This repository is loosely split into three parts.
- The programs themselves.
- A set of C/C++
main()
templates to link the programs to. - A Utilities library that will in many cases need to be linked as well. (This will eventually be replaced with a makefile.)
Furthermore, most of the C programs will need to link the Cubiomes library when being compiled, which can be done by including a reference to
libcubiomes.a
(a static compilation of the library). Iflibcubiomes.a
in turn needs to be updated, that can be done by installing CMake, entering thecubiomes
submodule in a terminal, and runningmake libcubiomes
on Linux/mingw32-make.exe libcubiomes
on MinGW.
All #include paths in this repository are also standardized in relation to the parent directory seedfinding/
: as such, when compiling the C programs one needs to specify that directory should be examined as well via -I"<path to seedfinding/>"
.
As an example, compiling Extreme Climates/Extreme Climate At Coordinate.c
with pthreads would be done with
gcc "Extreme Climates/Extreme Climate At Coordinate.c" "Templates/Example main (pthreads).c" "Utilities/Math.c" "Utilities/Climates.c" "Utilities/Spawn.c" "libcubiomes.a" -I"<path to seedfinding/>" -o "<executable name>"
with optional compilation flags (-O3
, -fwrapv
, -Wall
, etc.) listed afterwards.
This repository is also the place to raise issues relating to my reference guide "On Seedfinding", or to suggest (evidence-based) additions, deletions, or changes to it. (Please ensure any changes you suggest abide by the guide's Legal page.)