0.1.3 • Published 6 years ago
aitournament-rps-client v0.1.3
AiTournament rock paper scissors client SDK
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;
});