This is a simple API client to play the Minesweepers Game.
clone this repo
[email protected]:pablorodriguez/minesweeper-api-client.git
run npm install
Comman pattern
node index.js COMMAND_NAME PARAMS
To list games for a specific user run this
This are the available commandsto run
- node index.js list USER_NAME => To get the list of games for a ser
- node index.js start USER_NAME GAME_NAME X Y AMOUNT_OF_MINE => To create a new game for a user
- node index.js stop GAME_NAME => To stop playing the game
- node index.js play GAME_NAME => To start playing the game
- node index.js show USER_NAME GAME_NAME => to show a specific game
- node index.js click USER_NAME GAME_NAME X Y => to click over a cell in a game
- node index.js flag USER_NAME GAME_NAME X Y => to add a flag over a cell in a game
This is not what I would expect for real life API Client, I code this because I try to use a different languge from the Server Side Im not an expert on Node JS, I know that thare are must better example about how to code a API client to consume that Game's API