1.2.1 • Published 1 year ago

rock-paper-scissors-client v1.2.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Rock paper scissors client

This is a CLI client for a custom rock-paper-scissors API.

Installation

You just have to download the package globally using npm

npm i -g rock-paper-scissors-client 

Usage

To play be sure the api is running on port 8080.

Then use the client with this alias :

ropesc

To play a game you have to use the play arg with --rounds option

--rounds options means the number of winning rounds needed to win the game against the computer. Here we pass 2 so you or the computer will have to win 2 rounds to win the game.

ropesc play --rounds 2

Auth has be added to rock-paper-scissors-client. You can now create an account to save your games.

Follow next steps to use authentication correclty.

To create an account to record your games use :

ropesc signup

To log in use :

ropesc login

To log out use :

ropesc logout
1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago