📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

@socialgorithm/uabc

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@socialgorithm/uabc

Ultimate Algorithm Battle Client

10.2.1
latest
Source
npm
Version published
Weekly downloads
27
-70%
Maintainers
2
Weekly downloads
 
Created
Source

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"

Keywords

ultimate

FAQs

Package last updated on 12 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts