Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

UABC

uabc: Ultimate Algorithm Battle - Client

This is a websocket client that allows participation in Socialgorithm Tournaments. Learn more about those in our documentation

This client will executes your player file, and pipe the stdin/stout generated by that process to the tournament server over a socket.

This means that your player can be written in any language, and it will work as long as your computer can run it.

Getting started

Note: If you are participating in a competition, it is best to start in the Participant section of the documentation.

Install the executable:

$ npm install -g @socialgorithm/uabc

Verify the installation by running:

$ uabc --version

Options

Run uabc -h to see the full list of options:

Running the sample player

You will need to clone the specific sample player that you want to run, for example, for tic-tac-toe:

$ git clone git@github.com:socialgorithm/tic-tac-toe-player
$ cd tic-tac-toe-player

Then run the sample using the globally installed UABC, for example:

$ uabc --host "https://sg-tournament.herokuapp.com" 
  --lobby "{YOUR_LOBBY_NAME}" 
  --token "Player1" 
  -f "node run_player.js random"
You can’t perform that action at this time.