{"id":47715725,"url":"https://github.com/coeusyk/chess-engine","last_synced_at":"2026-04-19T07:05:25.176Z","repository":{"id":346622068,"uuid":"828150791","full_name":"coeusyk/chess-engine","owner":"coeusyk","description":"A competitive Java chess engine with bitboard representation, alpha-beta search, classical evaluation, and full UCI protocol support.","archived":false,"fork":false,"pushed_at":"2026-04-02T19:50:47.000Z","size":2634,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-03T04:57:51.000Z","etag":null,"topics":["bitboards","chess","chess-engine","magic-bitboards","uci","uci-chess-engine"],"latest_commit_sha":null,"homepage":"","language":"Java","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/coeusyk.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":"2024-07-13T09:14:03.000Z","updated_at":"2026-03-28T12:41:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/coeusyk/chess-engine","commit_stats":null,"previous_names":["coeusyk/chess-engine"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/coeusyk/chess-engine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coeusyk%2Fchess-engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coeusyk%2Fchess-engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coeusyk%2Fchess-engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coeusyk%2Fchess-engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coeusyk","download_url":"https://codeload.github.com/coeusyk/chess-engine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coeusyk%2Fchess-engine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31997812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":["bitboards","chess","chess-engine","magic-bitboards","uci","uci-chess-engine"],"created_at":"2026-04-02T18:55:31.942Z","updated_at":"2026-04-19T07:05:25.152Z","avatar_url":"https://github.com/coeusyk.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chess Engine Backend\n\nBackend repository for a modular chess engine platform with REST and UCI adapters.\n\n## Repository Layout\n\n- `engine-core`: pure Java chess domain and move-generation engine.\n- `chess-engine-api`: Spring Boot REST adapter used by the UI.\n- `engine-uci`: UCI runner module.\n\n## Validation Snapshot\n\n- Full reactor build/test: `mvnw clean test` passes.\n- `engine-core` test suite includes:\n\t- legality tests,\n\t- draw-rule tests,\n\t- perft reference tests,\n\t- make/unmake determinism and Zobrist restoration tests,\n\t- evaluator regression and symmetry tests.\n- Phase 4 SPRT result versus Phase 3 baseline:\n\t- `SPRT: llr 2.97 (101.0%), lbound -2.94, ubound 2.94 - H1 was accepted`\n\t- `Elo difference: +185.7 +/- 54.2, LOS: 100.0%, DrawRatio: 28.6%`\n\nPerft references currently covered in tests:\n\n- Start position: depth 1..5.\n- Kiwipete (Position 2): depth 1..3.\n- CPW Position 3: depth 1..5.\n- CPW Position 4: depth 1..4.\n- CPW Position 5: depth 1..4.\n\n## Build And Test\n\nFrom repo root (`chess-engine`):\n\n```bash\n./mvnw clean test\n```\n\nWindows PowerShell:\n\n```powershell\n.\\mvnw.cmd clean test\n```\n\nRun only core tests:\n\n```powershell\n.\\mvnw.cmd -pl engine-core test\n```\n\nRun perft harness gate only:\n\n```powershell\n.\\mvnw.cmd -pl engine-core -Dtest=PerftHarnessTest test\n```\n\nRun tactical mate suite benchmark (\u003e= 80% expected):\n\n```powershell\n.\\mvnw.cmd --% -pl engine-core -Dtest=TacticalSuiteTest -Dtactical.enabled=true -Dtactical.movetime.ms=2000 -Dtactical.min.pass.rate=0.80 -Dtactical.expected.positions=50 test\n```\n\nAlternative (depth-limited instead of movetime):\n\n```powershell\n.\\mvnw.cmd --% -pl engine-core -Dtest=TacticalSuiteTest -Dtactical.enabled=true -Dtactical.depth=5 -Dtactical.min.pass.rate=0.80 -Dtactical.expected.positions=50 test\n```\n\nDefault bundled suite path:\n\n- `engine-core/src/test/resources/tactical/mate_2_3_50.epd`\n\n## Play Against The Engine\n\nYou can play Vex either through a chess GUI (Cute Chess) using UCI, or through your web UI (`chess-engine-ui`) backed by the REST API.\n\n### Option A: Play In Cute Chess (UCI)\n\n1. Build the backend modules:\n\n```powershell\n.\\mvnw.cmd clean install -DskipTests\n```\n\n2. Add the UCI engine in Cute Chess:\n- Open Cute Chess.\n- Go to engine management and add a new UCI engine.\n- Engine command:\n\n```text\njava -jar \u003cabsolute-path-to\u003e\\engine-uci\\target\\engine-uci-0.0.1-SNAPSHOT.jar\n```\n\n3. Start a game:\n- Create a new game with Vex as one side.\n- Set time control as desired (for example, `10+0.1`).\n\n4. Optional: run automated matches from repo root:\n\n```powershell\ntools\\match.bat \u003cnew-engine.jar\u003e \u003cold-engine.jar\u003e 100 \"tc=10+0.1\"\n```\n\n5. Optional: run SPRT patch validation:\n\n```powershell\ntools\\sprt.bat \u003cnew-engine.jar\u003e \u003cold-engine.jar\u003e\n```\n\nGenerated PGNs are written under `tools/results/`.\n\n### Option B: Play In The Web UI (`chess-engine-ui`)\n\n1. Start backend API (`chess-engine-api`) from the backend repo root:\n\n```powershell\n.\\mvnw.cmd -pl chess-engine-api spring-boot:run\n```\n\n2. In a separate terminal, start the UI from `chess-engine-ui`:\n\n```powershell\nnpm install\nnpm start\n```\n\n3. Open the local UI URL shown by React (typically `http://localhost:3000`).\n\n4. Ensure the UI API base URL points to your backend (commonly `http://localhost:8080`).\n\nIf your UI supports side/orientation selection, choose your side and start playing.\n\n## API Module Notes\n\n- Session-aware gameplay via optional `gameId` support.\n- New game reset endpoint:\n\t- `PUT /engine/new-game`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoeusyk%2Fchess-engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoeusyk%2Fchess-engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoeusyk%2Fchess-engine/lists"}