{"id":18001920,"url":"https://github.com/dgurkaynak/chess-ai","last_synced_at":"2025-03-26T08:31:03.922Z","repository":{"id":15368983,"uuid":"77675895","full_name":"dgurkaynak/chess-ai","owner":"dgurkaynak","description":"Medium strength Chess AI implementation in JavaScript","archived":false,"fork":false,"pushed_at":"2022-12-05T18:36:21.000Z","size":1030,"stargazers_count":14,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-30T00:39:40.111Z","etag":null,"topics":["chess","chess-ai","chess-engine"],"latest_commit_sha":null,"homepage":"https://deniz.co/chess-ai/","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/dgurkaynak.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}},"created_at":"2016-12-30T09:21:00.000Z","updated_at":"2024-08-04T13:27:38.000Z","dependencies_parsed_at":"2023-01-11T19:05:27.440Z","dependency_job_id":null,"html_url":"https://github.com/dgurkaynak/chess-ai","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/dgurkaynak%2Fchess-ai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgurkaynak%2Fchess-ai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgurkaynak%2Fchess-ai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgurkaynak%2Fchess-ai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dgurkaynak","download_url":"https://codeload.github.com/dgurkaynak/chess-ai/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245618655,"owners_count":20645039,"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-ai","chess-engine"],"created_at":"2024-10-29T23:19:20.438Z","updated_at":"2025-03-26T08:31:03.582Z","avatar_url":"https://github.com/dgurkaynak.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chess-ai\n\nMedium strength Chess AI implementation in JavaScript.\n\nAvailable on: [https://deniz.co/chess-ai/](https://deniz.co/chess-ai/)\n\n[![Demo](./demo.gif)](https://deniz.co/chess-ai/)\n\n[Presentation](https://docs.google.com/presentation/d/0B0RFeAd0sIc6MjZWVGl4QS1nOXM/edit?usp=sharing\u0026ouid=100564047032313877516\u0026resourcekey=0-V7NSA6HjNHRjoazid7WxAg\u0026rtpof=true\u0026sd=true) | [Project Report](https://drive.google.com/file/d/0B0RFeAd0sIc6RzNOaHhRUFdCTnc/view?usp=sharing\u0026resourcekey=0-BBCHIfowrM9p4eD0uki44Q)\n\n## Method overview\n\n- Search: Traditional minimax with alpha-beta and node ordering. Also un-even tree generation.\n- Evaluation features:\n    - [Piece values](https://www.chessprogramming.org/Point_Value#Basic_values)\n    - [Piece value adjustments](https://www.chessprogramming.org/Material#Other_Material_Considerations)\n    - [Piece square tables](https://www.chessprogramming.org/Piece-Square_Tables)\n    - [King's shield](https://www.chessprogramming.org/King_Safety)\n    - [Blockages](https://www.chessprogramming.org/Trapped_Pieces)\n    - [Safe mobility](https://www.chessprogramming.org/Mobility#Safe_Mobility)\n    - [Attack count\u0026weight](https://www.chessprogramming.org/King_Safety#Attacking_King_Zone)\n\n## Setup\n\n- Install dependencies with `npm i`\n- Start development server `npm start` and open `http://localhost:1234`\n- To build run `npm run build`, server `./dist` folder with your favorite webserver.\n- To run tests suites:\n\n```\nnode test/bratko-kopec.js\nnode test/ccr.js\nnode test/eigenmann-endgame.js\nnode test/kaufman.js\nnode test/lct.js\nnode test/nolot.js\nnode test/sbd.js\nnode test/wac300.js\n```\n\n## Thanks\n\nSpecial thanks to these projects that help me a lot in this.\n\n- [Chess.js](https://github.com/jhlywa/chess.js)\n- [Chessboard.js](http://chessboardjs.com/)\n- [CPW](https://www.chessprogramming.org/Main_Page)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgurkaynak%2Fchess-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgurkaynak%2Fchess-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgurkaynak%2Fchess-ai/lists"}