abebinder / memchess

An application to teach chess openings by repetition. Site is live at https://memchess.org
GNU General Public License v3.0
5 stars 3 forks source link

Add wikibooks #57

Open abebinder opened 2 years ago

abebinder commented 2 years ago

A cool feature from lichess that would be great here

Unclear how it should be

  1. Shows wikibook pages for all moves of the opening once you slect the opening
  2. the last move only?
  3. shows wikibook for just the last move that was made? wikibooks
abebinder commented 2 years ago

https://stackoverflow.com/questions/60796139/wikibook-api-query

abebinder commented 2 years ago

https://github.com/ornicar/lila/blob/cc79e29cbf34f2753e2fadec5c006c134409d961/ui/analyse/src/wiki.ts#L46

abebinder commented 2 years ago

ex

https://en.wikibooks.org/w/api.php?titles=Chess%20Opening%20Theory/1.%20e4&redirects&origin=*&action=query&prop=extracts&formatversion=2&format=json&exchars=1200https://en.wikibooks.org/w/api.php?titles=Chess_Opening_Theory/1._e4&redirects&origin=*&action=query&prop=extracts&formatversion=2&format=json&exchars=1200