I'm looking for open-source polyglot opening books to help exclude opening moves from a tool I'm developing which analyzes games from PGN.
ImperfectAge Jun 28, 2021
Hi, The chess.com player gaes data is not being read properly into the spark dataframe. How do i fix this? My code is below: Code to save the game data in a CSV file format: ``` data-url= https://api.chess.com/pub/player/erik/gamesgames= requests.get(data-url).json()df= pd.json_normalize(games['games'])df['poi']= 'erik'df.to_csv('data.csv', index=False) df = spark.read.format("csv").load(r'/media/disk2/isb_ras/sachin/chess/matches/games_larrygm.csv',header=True) ``` As you can see in the below screenshot, everything is in the first column and all other columns have none. Any suggestions are appreciated.
sachinsksm99 Jun 20, 2021
As many of you know, starting from the 8th of March API returns not the full list of team matches, but the trimmed list of them. From the news ( https://www.chess.com/news/view/non-breaking-change-club-matches-endpoint ) we expect to have a following structure of the endpoint: {"finished": [ 1000* most recent matches ],"in_progress": [ All in progress matches ],"registered": [ All registered matches],"comment": "Results are temporarily reduced to the most recent 1000 matches for performance reasons"} * In fact it was reduced later to 500, as it is said in "comment" section now. Obtained JSON has the expected structure: and "in_progress" and "registered" sections are absolutely correct. But "finished" section contains 500 daily matches starting from the most old one (look after the match ID): So at number #499 (500th daily match) we have a match that was finished 9 years ago. And then, starting from number 500, finished live matches are placed. We currently have only 476 live matches played, so I don't know: will this bug be reproduced for live section as well or not, when we pass the limit of 500 matches. Concluding, there is no currently a way to obtain a list of recently finished matches for your team, if more than 500 matches were played. P.S. Using the opportunity, I repeat my unanswered question published under the related news ( https://www.chess.com/news/view/non-breaking-change-club-matches-endpoint#comment-58266362 ): Does "temporarily" means that you plan to return full functionality for the endpoint later on? If so, could you give an approximate timescale? A month later? A year? Wouldn't it be better to separate this endpoint by two ( /pub/club/{ID}/lastmatches and /pub/club/{ID}/allmatches ), asking developers to use only first one, if possible?
stephen_33 Jun 16, 2021
I was wondering if the publicly available data from the chess.com API (games, players etc.) can be used by me in an app/website that I am making? If yes, are there restrictions on the app? For instance, does it have to be non-commercial? Can I ask for donations in the app/website? I have read the API agreement posted here https://www.chess.com/clubs/forum/view/readme-1#comment-33653396. My app is not a competing app, and it discloses that games are from chess.com, and also has a link to the corresponding games. And currently I store only a small amount of data gathered from the API at any time. I was directed to ask the question in this forum by chess.com's Member Support. The person asked me to contact one of the 'SAs' here.
elmsakni Jun 6, 2021
So, I just started coding about 6 months ago. I know some HTML, CSS, and Javascript, but I felt like they were just not as fast and easy as python. I decided to start learning the pygame library. Today, I tried to make a chess board with the least amount of lines possible. Here is my code: import pygamepygame.init()window = pygame.display.set_mode([640, 640])window.fill((0, 0, 0))x_axis = 0y_axis = 0rect = pygame.Rect(x_axis, y_axis, 80, 80)flag = Truefor y in range(0, 8): for x in range(0, 8): pygame.draw.rect(window, (255, 255, 255), rect) pygame.draw.rect(window, (101, 67, 33), rect, 5) rect = pygame.Rect(x_axis, y_axis, 80, 80) x_axis += 160 y_axis += 80 if flag: x_axis = 80 flag = False else: x_axis = 0 flag = Truepygame.display.update()pygame.time.wait(40000) As you can see, it was 23 lines without the empty lines. I feel like this is a bit lengthy, especially for just a black and white board with brown outlines. Could someone please show me a better way to this (if there is)?
tokenplayer May 28, 2021
I have come across two instances of team matches requests that should return "not found" error. https://api.chess.com/pub/club/team-méxico/matches https://api.chess.com/pub/club/team-trentino-südtirol/matches These calls do not return any responce at all. Just a blank page. Probably relates to extended character set chars.
stephen_33 May 21, 2021
as you can see if a friend is online it is supposed to display green and if a friend is in live its supposed to display orange but why is it displaying red a bug perhaps
Martin_Stahl May 15, 2021
Does anyone have a timeline of when Chess.com introduced Game Analysis, and any significant improvements they have made to Game Analysis over the years? My understanding is a big change happened in early 2019. Have there been big changes since then? Does anyone know when it was introduced?
starts from a few days ago (maybe May 9th) I cannot play online game on browser. The chess board with pieces is rendered but inoperable and steps window not rendered. With network sniffer I found the connection to api.chess.com is always failed with "uncompleted" status. Changing the game's connection setting didn't help. It is weird because I can connect the api directly in separated browser session. Other JavaScript connection to www.chess.com is also okay. Any idea or suggest is appreciated! location: China OS/browser: iOS/Mac OS. Safari(in iOS/mac)/Microsoft Edge(Mac)
Hi,First of all, I just wanna say that Chess.com is an AWESOME site! Support mentioned this community, so I hope this is the right place for this question... I just wrote a small free open-source Chrome extension for Chess.com, adding Matrix-style digital rain to standard boards. My extension changes the board UI, but does NOT help players in any way. Is there a concept like "Approved for usage during games by Chess.com" badge, so people can relax knowing that using this extension during games does not violate fair play? Demo video, extension installation, GitHub repo, etc. are here: https://chrome.google.com/webstore/detail/chess-digital-rain/bahgnadepjfgmbhaejlnpmjnkdemmgdd WDYT?
Something has changed I think. I'm not seeing the timeout_percent reported in chess_daily/last, only under chess_daily/record. For example, from https://api.chess.com/pub/player/pomarancian/stats : "chess_daily": { "last": { "rating": 1571, "date": 1619965650, "rd": 39 }, "best": { "rating": 1860, "date": 1391040394, "game": "https://www.chess.com/game/daily/323101078" }, "record": { "win": 952, "loss": 705, "draw": 115, "time_per_move": 18349, "timeout_percent": 13.02 }},
ImperfectAge May 3, 2021
I've been getting back a few 500 HTTP error codes for a number of club match archive endpoint requests in the last hour. The code is for a generic server error issue but I'm wondering what the underlying problem is? These are some of the endpoint requests that are returning that code:- https://api.chess.com/pub/club/the-netherlands/matches https://api.chess.com/pub/club/hampovsky-chess-club/matches https://api.chess.com/pub/club/motorhead/matches All I get is "{"status":"error","message":"Internal Server Error"}" Anyone else encountering this?
stephen_33 Apr 29, 2021
Hi. About a month ago we created a version of 8 player chess and set up a club to play it in the forums by editing images. A month later and we have over 100 members, a sandbox image editor and we're on a push to try and make it so we have a live server one day. There's a real buzz about it and it's pretty kick that so many people are interested in it. We're aiming for something like the 4pc server that exists here already on Chess.com. Currently, we have one guy doing all the coding and he admits there are some areas he isn't as familiar with as he would like to be. I was wondering if anyone would be interested in joining our development team to help bring this about? Specifically, we are looking for people with any of the following skills: - PHP - Node.js - Webhooks - SQL Database building and website connectivity We can't pay you and even as the versions inventor I won't be making any money from the project either (Creative Commons all the way, yay!). Let me know if you are interested, check out the club if you would like to find out more. Here's a picture of our 8pc board: Thanks for Reading.
GTSWPM150 Apr 26, 2021
Is there a way for members to access their puzzles archive? The profile page only shows the last 25 puzzles solved.
I just created an alpha version of an analysis tool I was thinking about. https://chess-analyzer.azurewebsites.net/index.html It is still in early stage and only checks the archives for standard games, but I find it already more usable than the chess.com archive search... For now, you get an overview of your games played during the selected month, which you can quickly filter and chart. Feel free to comment/remark/suggest
arTleVark Apr 10, 2021
Request: https://api.chess.com/pub/country/IN/players Request: https://api.chess.com/pub/country/US/players Response: {"status":"error","message":"Internal Server Error"} Can anyone Explain why this is happening?
stephen_33 Apr 9, 2021
Is there away to get a list of all past tournament URLs from a club?
servethakanaltay Apr 9, 2021
I want to create a chess app using react and javascript and I am getting in a pickle over which library to use. I've been looking at chessboardjs but that seems to be javascript with some issues using it with react. chessboardjsx is unmaintained, so I wonder if there are any risks. My project is for me to improve my 'early days' react and javascript skills, but ultimately I would like to create the site into something with a paid membership element to it. I don't know what you call them: free version and paid. Freemium? Anyways, I spent all day on looking at the different boards out there and I am going round and round in circles. Any suggestions? I presume Chess.com is using chessboard.js with chess.js, although I am obviously not sure. And perhaps they are using React too? Anyone know the answers to these?
icositetrachoron Apr 7, 2021
Hi Guys and Girls... Just a friendly notice that I just put together a .NET wrapper for the API in C#. https://github.com/nullablebool/ChessDotComSharp Available on Nuget too. Install-Package ChessDotComSharp
AlexSaesee Apr 7, 2021
WhoAmI/Fermy's code is still available at http://bughouse.net/downloads.htm, and without BPGN support I don't think bug will ever be well-supported by the API. Best as I can tell right now, the API simply doesn't provide PGNs for bughouse games, meaning any sort of replay or analysis functionality simply can't be built.
pnaxighn Apr 1, 2021