Skip to content

Latest commit

 

History

History
88 lines (59 loc) · 1.57 KB

File metadata and controls

88 lines (59 loc) · 1.57 KB

RoboGo

Build Status

Formatting

  • Before submitting pull requests, make sure that you run clang-format so that your code follows our standards, otherwise, travis will complain.

  • If you already made your commit, you can run git clang-format HEAD~1 to format it, or you can use clang-format <path-to-file> -i from the beginning.

Building

To build the project, simply create a build directory, go inside it, run cmake, then start the building process by running make:

mkdir build
cd build
cmake ..
make

Testing

To build unit tests, pass -DENABLE_TESTING=ON flag to cmake:

cmake -DENABLE_TESTING=ON ..

And after building the project, execute the following command to start running the tests:

make test

You can also run the resulting binary, which might give more flexibility. Refer to Catch2 CL for the CL options of the Catch2 test binary.

How to Run

Make sure you are in build folder, and you built the project with cmake, then run the following command:

./bin/goslayer-executable

CLI Supported Commands

Make a move in position xy

mv xy

For example

mv F12

Show board

board

Show liberties map of cluster

lib xy

Show cluster information

cluster xy

Show game state (board, time, score, etc.)

state