{"id":18456967,"url":"https://github.com/epictetusz1/chessvisualization","last_synced_at":"2025-04-22T23:04:09.294Z","repository":{"id":111797560,"uuid":"352137290","full_name":"EpictetusZ1/ChessVisualization","owner":"EpictetusZ1","description":"A chess .pgn parser,  .pgn extractor,  adding a chess opening book with data visualization and web scraper. Separating projects from a private repo of mine.","archived":false,"fork":false,"pushed_at":"2021-04-19T21:18:36.000Z","size":108,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T15:15:12.595Z","etag":null,"topics":["chess","chess-database","chess-game","chess-openings","data-visualization","database","mysql"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EpictetusZ1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-27T17:40:50.000Z","updated_at":"2023-02-14T17:59:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"95750024-7c3c-4d12-ab8a-74fc34a534d6","html_url":"https://github.com/EpictetusZ1/ChessVisualization","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EpictetusZ1%2FChessVisualization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EpictetusZ1%2FChessVisualization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EpictetusZ1%2FChessVisualization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EpictetusZ1%2FChessVisualization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EpictetusZ1","download_url":"https://codeload.github.com/EpictetusZ1/ChessVisualization/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250337944,"owners_count":21414104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chess","chess-database","chess-game","chess-openings","data-visualization","database","mysql"],"created_at":"2024-11-06T08:13:09.954Z","updated_at":"2025-04-22T23:04:09.273Z","avatar_url":"https://github.com/EpictetusZ1.png","language":"Python","readme":"# Chess Visualization and Database\n\n\n#### *A program that lets you discover and visualize candidate moves*\n\n\n\n### Features:\n\n##### PGN Extractor:\n\n  - Parser can handle both individual game files, and pgn files that contain multiple games.\n      - Currently can only deal with limited tag values (Not \"time\", \"comments\" - which are generated automatically from most online games)\n  - PGN parser to filter game *tag* values (i.e. [Black  \"Famous Chess Player Name\"]) then add values to a data.\n\n  - Parse each individual move from the pgn file and add list of the individualized moves to the same data frame (similar to word tokenization).\n\n\n##### Database:\n  - Sql files for creation of database tables (RDBM: MySql).\n  - Triggers to populate a separate *moves* table (needed for visualization).\n  - Connect database to python for data manipulation.\n  - Example input and query.\n\n\n##### Visualization:\n  - Can show frequency of most popular \"first\" turn/ ply for games in the database\n    - (Note: a turn is one individual player action, two \"turns\" or \"plys\" result in a move being completed)\n\n  - Show \"second\" move frequency as a dependant of the first move. Which in turn gives us a list of the most frequently occurring moves in terms of the next move for each instance of a 'move'.\n    - This is still being worked on, the end goal is to show them on the board, in a Seaborn heat map sort of way with the top 3 replies to each move being displayed.\n\n\n### Current Status:\n- Still working through the multi-index problem of yielding top 3 most popular moves from database (children) from the desired index move (parent). Need to add ability to select a given move index and evaluate if the previous moves == any in database, then provide popular moves based off existence of that unique sequence of moves in database games.\n\n\n#### About this data:\n- Sample data is 88 games. Can be viewed in '/games' dir.\n- 155 is the length of 'plys' of the longest game in the data frame (Note: there is 2 plys in a 'move', the longest game has 78 moves).\n- All games have been appended with 'None' string values to make the data non-jagged.\n- Column[0] contains whites 5 most popular first moves (d4, e4, c4, Nf3).\n- Column[1] contains blacks 3 most common replies to each [0] move from white.\n\n\n![Current output](Assets/Output_ChessV.png?)\n\n\n#### To be added:\n- Web scraper\n  -  To download Master chess games (\".pgn\" files) from a unnamed-popular-chess-website and populate database with results.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepictetusz1%2Fchessvisualization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepictetusz1%2Fchessvisualization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepictetusz1%2Fchessvisualization/lists"}