{"id":50492926,"url":"https://github.com/foo123/chess.js","last_synced_at":"2026-06-02T04:31:08.819Z","repository":{"id":352824561,"uuid":"1207854950","full_name":"foo123/chess.js","owner":"foo123","description":"Chess Game, Chess Board, Chess Engine and Chess Exercises","archived":false,"fork":false,"pushed_at":"2026-04-28T10:21:03.000Z","size":5801,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-28T12:12:27.392Z","etag":null,"topics":["chess","chess-board","chess-engine","chess-exercises","chess-game"],"latest_commit_sha":null,"homepage":"https://foo123.github.io/examples/chess-play/","language":"JavaScript","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/foo123.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-11T13:51:03.000Z","updated_at":"2026-04-28T10:14:23.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/foo123/chess.js","commit_stats":null,"previous_names":["foo123/chess","foo123/chess.js"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/foo123/chess.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo123%2Fchess.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo123%2Fchess.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo123%2Fchess.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo123%2Fchess.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foo123","download_url":"https://codeload.github.com/foo123/chess.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo123%2Fchess.js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33806987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-board","chess-engine","chess-exercises","chess-game"],"created_at":"2026-06-02T04:31:08.090Z","updated_at":"2026-06-02T04:31:08.813Z","avatar_url":"https://github.com/foo123.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chess\n\nChess Game, Chess Board, Chess Engine and Chess Exercises\n\n![chess game browser](/screenshot-browser.png)\n\n![chess game terminal](/screenshot-terminal.png)\n\n## ChessGame\n\nRepresents a game of chess, the possible moves, when the game is over and who wins.  \nversion: 1.0.0\n\n## ChessBoard\n\nRepresents the board of chess in HTML and in Terminal.  \nversion: 1.0.0\n\n## ChessSearch\n\nImplements various search methods for a best move in a game of chess.  \nversion: 0.11.0\n\nMethods:\n* Alpha Beta Search\n* MTD(f) Search\n* Best Node Search\n* Monte Carlo Tree Search\n* Hybrids of above methods\n\nA user-defined evaluation function can be used, else a custom-crafted evaluation function is used which, although simple and fast, produces quite good results (see `tournament.js` for some tentative results).  \nThe evaluation function should explicitly declare in the options the value of MATE (`opts.MATE`), and should return values strictly between `-MATE` (losing) and `MATE` (winning) and only `MATE/2` for a draw.\n\nRelated References:\n1. \"An analysis of alpha-beta pruning\", Donald E. Knuth, Ronald W. Moore, 1975\n2. \"Best-first fixed-depth minimax algorithms\", Aske Plaat, Jonathan Schaeffer, Wim Pijls, Arie de Bruin, 1996\n3. \"Fuzzified Algorithm for Game Tree Search with Statistical and Analytical Evaluation\", Dmitrijs Rutko, 2011\n4. \"Bandit based Monte-Carlo Planning\", Levente Kocsis and Csaba Szepesvári, 2006\n5. \"Monte Carlo Tree Search: A Review of Recent Modifications and Applications\", Maciej Świechowski, Konrad Godlewski, Bartosz Sawicki, Jacek Mańdziuk, 2021\n6. \"Pruning Game Tree by Rollouts\", Bojun Huang, 2015\n7. \"A Rollout-Based Search Algorithm Unifying MCTS and Alpha-Beta\", Hendrik Baier, 2016\n\nAdditionally, copies of [stockfish.js](https://github.com/nmrugg/stockfish.js/) and [sunfish.js](https://github.com/foo123/sunfish.js/) chess engines are included, that either a human or an algorithm can play against.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoo123%2Fchess.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoo123%2Fchess.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoo123%2Fchess.js/lists"}