Skip to content

socialgorithm/uabc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UABC

uabc: Ultimate Algorithm Battle - Client

This is the client to participate in Ultimate Algorithm Battles

The client executes your player, and pipes its stdin/stout to the game 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

Install the executable:

$ npm install -g @socialgorithm/uabc

Verify the installation by running:

$ uabc --version

Playing

You'll need to get a valid token from the game server first. Let's assume that our token is 123 for now.

Simply run:

$ uabc -t 123 -f "node player.js"

Where player.js is your player. Another example, if it was a Java program:

$ uabc -t 123 -f "java Player"

You don't need the server running to start the client, it will automatically detect the server and connect to it when it comes up.

Running the sample player

uabc provides a sample player that choses valid moves at random. To test it clone this repository and select it as your player:

(Make sure you have already installed uabc)

$ git clone [email protected]:aurbano/uabc.git
$ cd uabc
$ uabc --host localhost:3141 -t token -f "node dist/sample/player.js"

About

Ultimate Algorithm Battle CLI

Topics

Resources

License

Stars

2 stars

Watchers

12 watching

Forks

Packages

 
 
 

Contributors