mkdir build
cd build
cmake ..
make
cd build/export/bin/
./quoridor-cli
- QUORIDOR_PLUGIN_PATH: Configure quoridor plugin directory. If not set, it will default to ../lib (relative to current dir).
- QUORIDOR_PLAYER_TIMEOUT_DISABLE: The game will end by default when player exceeds its time limit (5 sec). This can be disable by setting QUORIDOR_PLAYER_TIMEOUT_DISABLE=1
A plugin implements the logic of a Quoridor player.
To add a new plugin one must create a new subfolder under plugins and add a new class that extends qcore::Player and overrides doNextMove() method.
At each step, a player can interrogate the current state of the board and must complete one of the allowed actions (move to another position or place a wall on the board).
Use dummy_plugin as example. To make the plugin available to the game controller, REGISTER_QUORIDOR_PLAYER() must be called with the new player class as parameter (PlayerRegistration.cpp can be reused for this purpose).