The deployable libmahjong game service
Gametable is a sevice to host network-based, libmahjong-backed riichi mahjong matches.
git
cmake
- pistache (AUR:
pistache-git
) rapidjson
spdlog
# Bootstrap build/
cmake -S . -B build
# Build executable
cmake --build build
Tenpai is a boilerplate designed for easy libmahjong Player Controller development. Out of the box, Tenpai supports connecting to gametable matches as well as running local simulations to test your bot with a larger sample size. See the project for more details.
The Gametable SDK can be included in your own project to join remote matches with your Player Controller.
Example Connection
#include <gametablesdk/network.h>
using GametableSDK::Network::connectToMatch;
int main() {
MyBot botInstance;
connectToMatch(botInstance, "http://gametable.example.com:8080");
return 0;
}