{"id":26336073,"url":"https://github.com/benckx/elephantchess","last_synced_at":"2025-03-16T01:16:30.293Z","repository":{"id":147781698,"uuid":"614943659","full_name":"benckx/elephantchess","owner":"benckx","description":"Play and study Chinese chess online","archived":false,"fork":false,"pushed_at":"2025-03-10T10:17:05.000Z","size":1587,"stargazers_count":5,"open_issues_count":206,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T10:25:07.799Z","etag":null,"topics":["chess","chess-analysis","chess-database","chess-problems","chess-puzzle","chinese-chess","xiangqi"],"latest_commit_sha":null,"homepage":"https://elephantchess.io","language":"Kotlin","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/benckx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["benckx"],"ko_fi":"elephantchess","custom":["https://www.paypal.me/benckx"]}},"created_at":"2023-03-16T16:19:44.000Z","updated_at":"2025-03-10T10:17:09.000Z","dependencies_parsed_at":"2025-03-10T10:25:15.965Z","dependency_job_id":"f32102b5-cfc8-4c67-acc6-286139dc31db","html_url":"https://github.com/benckx/elephantchess","commit_stats":null,"previous_names":["benckx/elephantchess"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benckx%2Felephantchess","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benckx%2Felephantchess/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benckx%2Felephantchess/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benckx%2Felephantchess/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benckx","download_url":"https://codeload.github.com/benckx/elephantchess/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243809874,"owners_count":20351407,"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-analysis","chess-database","chess-problems","chess-puzzle","chinese-chess","xiangqi"],"created_at":"2025-03-16T01:16:29.760Z","updated_at":"2025-03-16T01:16:30.287Z","avatar_url":"https://github.com/benckx.png","language":"Kotlin","readme":"# About\n\n[elephantchess.io](https://elephantchess.io) is a web application to play and study Chinese chess (or xiangqi 象棋).\n\nFeel free to create issues in this repo to report bugs or request feature changes. The\ncurrent [roadmap](https://github.com/users/benckx/projects/2/views/1) is also available on this repo.\n\nAs of now, the public repository only contains a couple of libraries developed for the backend. Those are under LGPL-3.0\nlicense. The rest of the webapp code is not open source yet.\n\n# Modules\n\n## xiangqi-core\n\nKotlin library providing a representation of a Chinese chess board.\n\n### Example 1\n\n```kotlin\nimport io.elephantchess.xiangqi.Board\n\nfun main() {\n    val board = Board()\n    println(board.outputFen())\n    println()\n    println(board.print())\n\n    println()\n    println()\n\n    board.registerMove(\"h2e2\") // C2=5\n    board.registerMove(\"h9g7\") // H8+7\n    println(board.outputFen())\n    println()\n    println(board.print())\n}\n```\n\n### Output 1\n\n```\nrnbakabnr/9/1c5c1/p1p1p1p1p/9/9/P1P1P1P1P/1C5C1/9/RNBAKABNR w - - 0 0\n\n   a b c d e f g h i\n            \n9  r n b a k a b n r\n8  . . . . . . . . .\n7  . c . . . . . c .\n6  p . p . p . p . p\n5  . . . . . . . . .\n4  . . . . . . . . .\n3  P . P . P . P . P\n2  . C . . . . . C .\n1  . . . . . . . . .\n0  R N B A K A B N R\n\n\nrnbakab1r/9/1c4nc1/p1p1p1p1p/9/9/P1P1P1P1P/1C2C4/9/RNBAKABNR w - - 0 1\n\n   a b c d e f g h i\n            \n9  r n b a k a b . r\n8  . . . . . . . . .\n7  . c . . . . n c .\n6  p . p . p . p . p\n5  . . . . . . . . .\n4  . . . . . . . . .\n3  P . P . P . P . P\n2  . C . . C . . . .\n1  . . . . . . . . .\n0  R N B A K A B N R\n```\n\n## xiangqi-core-test-utils\n\nTest data for unit tests of `xiangqi-core`.\n\n# Libraries Usage\n\nAt the moment, you can use the libraries via JitPack. You only need to add the JitPack repository to your build.gradle\nfile:\n\n```Groovy\nrepositories {\n    maven { url 'https://jitpack.io' }\n}\n```\n\nThen you can use the dependencies:\n\n```Groovy\nimplementation \"com.github.benckx.elephantchess:xiangqi-core:1.0.8\"\n```\n","funding_links":["https://github.com/sponsors/benckx","https://ko-fi.com/elephantchess","https://www.paypal.me/benckx"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenckx%2Felephantchess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenckx%2Felephantchess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenckx%2Felephantchess/lists"}