0.1.3 • Published 6 years ago

aitournament-rps-client v0.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

AiTournament rock paper scissors client SDK

npm

Website: https://rps.aitournament.com

Create a match online to get a matchId / credentials

Quick Start

let Client = require("aitournament-rps-client");

let username = "player2";
let password = "pass";
let matchId = "ABCDE";

let client = new Client(username, password);

client.playMatch(matchId, function (myPreviousMoves, opponentPreviousMoves) {
    // Using the superior "only scissors" strategy
    return Client.SCISSORS;
});
0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago