# Tournament Server

Game-agnostic tournament server

## Run

An online version of this server is always running at server.socialgorithm.org, deployed using DigitalOcean.

To run locally:

    $ npx @socialgorithm/tournament-server -h

    tournament-server v10.0.0

      Socialgorithm Tournament Server

    Options

    ...

## Developer Guide

Clone the repo locally and run `npm install`. Once dependencies are installed you can run:

    $ npm run start:dev

This will run the typescript compiler and start the server, restarting the server whenever a file changes.

## Debugging

The server uses the `debug` library to aid debugging. Simply run:

    DEBUG=sg:* npm run start:dev

This will enable verbose logging of Socialgorithm related messages (use `*` to log everything).

## Index

### Modules

- TournamentServer
- TournamentServerOptions
- cli
- cli/options
- game-server/GameServerInfoConnection
- game-server/GameServerListPublisher
- http/HttpHandler
- lobby/LobbyManager
- lobby/LobbyRunner
- lobby/tournament/MatchRunner
- lobby/tournament/TournamentRunner
- lobby/tournament/matchmaker/DoubleEliminationMatch
- lobby/tournament/matchmaker/DoubleEliminationMatchmaker
- lobby/tournament/matchmaker/FreeForAllMatchmaker
- lobby/tournament/matchmaker/MatchMaker
- pub-sub
- pub-sub/Events
- pub-sub/PubSub
- socket/SocketServer

Generated using TypeDoc