您现在的位置是:首页 >技术杂谈 >寻觅那款你心仪的国际象棋app网站首页技术杂谈

寻觅那款你心仪的国际象棋app

北极象 2024-06-17 10:32:04
简介寻觅那款你心仪的国际象棋app

前言

蹲厕所时,看看大师的棋谱是一种享受,可惜寻寻觅觅,没有发现一款比较好的浏览软件,大部分要收费,各种广告和视频,皆非我想要。你在寻找一款国际象棋打谱软件吗?

现有软件

查了一下APP,主要的有:
Scid and his forks, ArenaChess, Tarraschchess, Fritz532, ChessX, LucasChess, PNGChessBook, MayuraChess and CraftyChess

我选择了基于chesso进行二次开发。

国象的两个主要站点:chess.com和lichess.org,前者收费,后者免费。前者有大量棋谱数据库,可以免费下载,也提供了API。

棋谱下载

chess.com

  • Description: standard multi-game format PGN containing all games for a month.
    URL pattern: https://api.chess.com/pub/player/{username}/games/{YYYY}/{MM}/pgn
  • Complete Monthly Archives
    Description: Array of Live and Daily Chess games that a player has finished.
    URL pattern: https://api.chess.com/pub/player/{username}/games/{YYYY}/{MM}
  • List of Monthly Archives
    Description: Array of monthly archives available for this player.
    URL pattern: https://api.chess.com/pub/player/{username}/games/archives
  • https://api.chess.com/pub/player/{username}

例如:
谢军的profile: https://www.chess.com/member/xiejun
https://api.chess.com/pub/player/xiejun

查看棋手名单:
https://api.chess.com/pub/titled/GM
就知道卡尔森的username为:magnuscarlsen
然后下载他的棋谱:
所有存档棋谱:https://api.chess.com/pub/player/magnuscarlsen/games/archives
某个月的棋谱:https://api.chess.com/pub/player/magnuscarlsen/games/2023/05

谢军的棋谱存档: https://api.chess.com/pub/player/junxie/games/archives
返回:

{"archives":["https://api.chess.com/pub/player/junxie/games/2020/11"]}

查看丁立人的:
https://api.chess.com/pub/player/dingliren/games/archives

参考

  • https://github.com/official-stockfish/Stockfish
  • https://www.chessprogramming.org/GUI#Chess_GUIs
  • https://github.com/lichess-org/lichobile
  • https://github.com/zsoltk/public/blob/master/chesso.gif
  • chess.com的API:https://www.chess.com/news/view/published-data-api
  • https://banksiagui.com/
  • https://github.com/nguyenpham/Banksia
  • SCID vs PC
  • Tarrasch
风语者!平时喜欢研究各种技术,目前在从事后端开发工作,热爱生活、热爱工作。