You need to install bazel and most likely tbb
to get it running
See cpp/myscript.sh
:
bazel run //src/pso/main:summary --cxxopt='-O3' --cxxopt='-DNDEBUG' --copt='-O3' --copt='-DNDEBUG'`
docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp -it domslee/bazel:tbb22 bash myscript.sh
The docker images are maintained at domsleee/bazel-docker
cpp/
contains the logic that evaluates the weights of feature setsMoveEvaluatorGroups.cpp
contains the feature sets that can be chosen
python/
contains the PSO logic used to generate the modelsget-move-service/
an endpoint that is used byweb/
to play a game using the aiweb/
contains a way of running the generated models online
- The demo playback uses an emulator, meaning it can only tap the same key once every two frames (especially a problem for level 19, where the piece moves down every two frames)
- Rotations where the piece is off the top of the board aren't included in path finding
- The implementation is a mess