Skip to content

RaptorTechnologies/QuoridorCore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuoridorCore

Build

mkdir build
cd build
cmake ..
make

Start console app

cd build/export/bin/
./quoridor-cli

App environment variables

  • 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

Create a new plugin

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).

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published