2.4.0 • Published 7 years ago

uabc v2.4.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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 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.

Player Documentation

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 git@github.com:aurbano/uabc.git
$ cd uabc
$ uabc --host localhost:3141 -t token -f "node sample/player.js"
2.4.0

7 years ago

2.3.0

7 years ago

2.2.0

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago