This is the library for the maths and (future) AI of the Prophecy Epitech project. It can be used in different ways :
- as a dynamic library
- as a web server to call the functions with a HTTP request (the API is here)
If you want to contribute you can join our Discord server !
Also read how to contribute here.
cargo build --lib
or
# You will need docker for this
chmod +x build_lib.sh
./build_lib.sh
You can add --release
to build it in release mode if you use cargo build
.
cargo build --bin prophecy-maths
or
# You will need docker for this
chmod +x build_server.sh
./build_server.sh
You can add --release
to build it in release mode if you use cargo build
.
./prophecy-maths
or
cargo run
You can add --release
to run it in release mode if you use cargo run
.
The request must be a JSON object sent with a POST request on /units. An example is given in the file request.example.
The response is a JSON object. An example is given in the file response.example.