Lichess: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| (15 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{:PlayChessWithAWebCam/Links}} | |||
= Motivation = | = Motivation = | ||
{{Link|target=PlayChessWithAWebCam}} shall be integrated with {{Link|target=https://lichess.org/|title=lichess.org}} | |||
* https://github.com/WolfgangFahl/play-chess-with-a-webcam/issues/17 | * https://github.com/WolfgangFahl/play-chess-with-a-webcam/issues/17 | ||
* https://lichess.org/forum/team-lichess-bots/integrate-play-chess-with-a-webcam-with-lichess | |||
== Source code == | |||
* https://github.com/WolfgangFahl/play-chess-with-a-webcam/blob/master/pcwawc/lichess.py | |||
* https://github.com/WolfgangFahl/play-chess-with-a-webcam/blob/master/tests/test_lichess.py | |||
= Links = | = Links = | ||
| Line 7: | Line 12: | ||
* https://github.com/lichess-org/api/blob/master/doc/specs/lichess-api.yaml | * https://github.com/lichess-org/api/blob/master/doc/specs/lichess-api.yaml | ||
* https://github.com/careless25/lichess-bot | * https://github.com/careless25/lichess-bot | ||
* https://github.com/veloce/lichobile/issues/1088 | |||
= Web integration = | |||
<html> | |||
<iframe src="https://lichess.org/embed/cpOszEMY?theme=auto&bg=auto" | |||
width=600 height=397 frameborder=0></iframe> | |||
</html> | |||
= Bot account = | |||
* https://lichess.org/api#operation/apiStreamEvent | |||
Upgrade account to bot via: | |||
<source lang='bash'> | |||
curl -d '' https://lichess.org/api/bot/account/upgrade -H "Authorization: Bearer <yourTokenHere>" | |||
</source> | |||
* https://lichess.org/blog/WvDNticAAMu_mHKP/welcome-lichess-bots | |||
[[Category:Chess]] | [[Category:Chess]] | ||
= Lichess Bot APIS = | |||
== Python lichess-bot == | |||
<youtube>w-aJFk00POQ</youtube> | |||
== Python berserk == | |||
* https://github.com/rhgrant10/berserk | |||
== Bot-o-Tron (Javascript) == | |||
* https://github.com/tailuge/bot-o-tron | |||
* https://medium.com/@itsromiljain/the-best-way-to-install-node-js-npm-and-yarn-on-mac-osx-4d8a8544987a | |||
<source lang='bash'> | |||
git clone https://github.com/tailuge/bot-o-tron | |||
cd bot-o-tron | |||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash | |||
# relogin since bash profile is changed ... | |||
nvm install v10.15.3 | |||
npm install -g yarn | |||
npm i -D nyc | |||
yarn install | |||
export API_TOKEN=xxxxxxxxxx | |||
yarn test | |||
yarn start | |||
</source> | |||
* https://github.com/tailuge/bot-o-tron/issues/6 | |||
= Lichess history = | |||
<youtube>LZgyVadkgmI</youtube> | |||
= What Links Here = | |||
{{WhatLinksHere}} | |||
Latest revision as of 07:36, 23 December 2019
Click here to comment see PlayChessWithAWebCam
Motivation
PlayChessWithAWebCam shall be integrated with lichess.org
- https://github.com/WolfgangFahl/play-chess-with-a-webcam/issues/17
- https://lichess.org/forum/team-lichess-bots/integrate-play-chess-with-a-webcam-with-lichess
Source code
- https://github.com/WolfgangFahl/play-chess-with-a-webcam/blob/master/pcwawc/lichess.py
- https://github.com/WolfgangFahl/play-chess-with-a-webcam/blob/master/tests/test_lichess.py
Links
- https://github.com/lichess-org/api/blob/master/doc/specs/lichess-api.yaml
- https://github.com/careless25/lichess-bot
- https://github.com/veloce/lichobile/issues/1088
Web integration
Bot account
Upgrade account to bot via:
curl -d '' https://lichess.org/api/bot/account/upgrade -H "Authorization: Bearer <yourTokenHere>"
Lichess Bot APIS
Python lichess-bot
Python berserk
Bot-o-Tron (Javascript)
- https://github.com/tailuge/bot-o-tron
- https://medium.com/@itsromiljain/the-best-way-to-install-node-js-npm-and-yarn-on-mac-osx-4d8a8544987a
git clone https://github.com/tailuge/bot-o-tron
cd bot-o-tron
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
# relogin since bash profile is changed ...
nvm install v10.15.3
npm install -g yarn
npm i -D nyc
yarn install
export API_TOKEN=xxxxxxxxxx
yarn test
yarn start
Lichess history