command
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: May 22, 2022
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Lichess CLI
Install
git clone git@github.com:mattcanty/lichess-cli.git
cd lichess-cli
make install
- Create a Lichess account
- Go to https://lichess.org/account/oauth/token
- Create a new token with
Play games with the board API
selected
- Copy the token and place in
~/.config/lichess-cli/config.json
like so:
{
"lichess_api_key": "xxxxxxxxxxxxxxxx"
}
Play
View Games
➜ ~ lichess-cli games
┏━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓
┃ ID ┃ MY TURN ┃ OPPONENT ┃ LAST MOVE ┃ BOARD ┃
┣━━━━━━━━━━╋━━━━━━━━━╋━━━━━━━━━━━━━━╋━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━┫
┃ hP09Ep7h ┃ true ┃ A.I. level 1 ┃ h2h4 ┃ ♜ ♞ ♝ ♚ ♛ ♝ ♞ ♜ ┃
┃ ┃ ┃ ┃ ┃ - ♟ ♟ ♟ - - ♟ ♟ ┃
┃ ┃ ┃ ┃ ┃ - - - - ♟ ♟ - - ┃
┃ ┃ ┃ ┃ ┃ ♟ - - - - - - - ┃
┃ ┃ ┃ ┃ ┃ - - - ♙ ♙ - - - ┃
┃ ┃ ┃ ┃ ┃ - - - - - - - - ┃
┃ ┃ ┃ ┃ ┃ ♙ ♙ ♙ - - ♙ ♙ ♙ ┃
┃ ┃ ┃ ┃ ┃ ♖ ♘ ♗ ♔ ♕ ♗ ♘ ♖ ┃
┣━━━━━━━━━━╋ ┃ ┣━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━┫
┃ mjqGC18w ┃ ┃ ┃ f5c2 ┃ ♖ - - ♕ ♔ ♗ - ♖ ┃
┃ ┃ ┃ ┃ ┃ ♙ ♙ - ♘ ♙ ♙ ♙ ♙ ┃
┃ ┃ ┃ ┃ ┃ - - ♙ - - ♘ - - ┃
┃ ┃ ┃ ┃ ┃ - - - ♙ - - - - ┃
┃ ┃ ┃ ┃ ┃ - - - ♟ - - - - ┃
┃ ┃ ┃ ┃ ┃ ♟ ♟ ♞ - ♟ ♛ - - ┃
┃ ┃ ┃ ┃ ┃ - - ♗ - - ♟ ♟ ♟ ┃
┃ ┃ ┃ ┃ ┃ ♜ - ♝ - ♚ ♝ ♞ ♜ ┃
┗━━━━━━━━━━┻━━━━━━━━━┻━━━━━━━━━━━━━━┻━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━┛
Make a Move
lichess-cli play m c1c2
m
is the prefix of the game ID and c1c2
is your move.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.