{"id":17802837,"url":"https://github.com/aykutkardas/ymir-js","last_synced_at":"2025-03-17T11:31:09.646Z","repository":{"id":40748563,"uuid":"264783222","full_name":"aykutkardas/ymir-js","owner":"aykutkardas","description":"This toolkit is created to make it easier for you to develop games like chess, checkers, go, match 3 puzzle and more. It is still under development.","archived":false,"fork":false,"pushed_at":"2023-09-27T21:26:19.000Z","size":592,"stargazers_count":34,"open_issues_count":4,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-27T13:29:42.572Z","etag":null,"topics":["checkers","chess","game","game-development","go","match3","toolkit"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/aykutkardas.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":"2020-05-18T00:23:30.000Z","updated_at":"2025-01-19T18:03:19.000Z","dependencies_parsed_at":"2024-10-27T12:55:18.845Z","dependency_job_id":"e8db2778-3373-4b38-b472-1f809cba53b4","html_url":"https://github.com/aykutkardas/ymir-js","commit_stats":{"total_commits":147,"total_committers":3,"mean_commits":49.0,"dds":"0.013605442176870763","last_synced_commit":"85524d186e04dbdef2d8d40dbedc942cf6816311"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aykutkardas%2Fymir-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aykutkardas%2Fymir-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aykutkardas%2Fymir-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aykutkardas%2Fymir-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aykutkardas","download_url":"https://codeload.github.com/aykutkardas/ymir-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243864609,"owners_count":20360355,"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":["checkers","chess","game","game-development","go","match3","toolkit"],"created_at":"2024-10-27T12:44:41.647Z","updated_at":"2025-03-17T11:31:09.172Z","avatar_url":"https://github.com/aykutkardas.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ymir-js\n\nThis toolkit is created to make it easier for you to develop games like chess, checkers, go, match 3 puzzle and more. It is still under development.\n\n### Create Board\n\n```js\nconst board = new Board({ x: 3, y: 3 });\n```\n\n### Set Item\n\n```js\nconst item = new Item({ name: 'myFirstItem' });\nboard.setItem('0|0', item);\n```\n\n### Get Item\n\n```js\nboard.getItem('0|0');\n// =\u003e { name: 'myFirstItem', ... }\n```\n\n### Move Item\n\n```js\nboard.moveItem('0|0', '1|1');\n```\n\n### Remove Item\n\n```js\nboard.removeItem('1|1');\n```\n\n### Switch Item\n\n```js\nconst firstItem = new Item({ name: 'myFirstItem' });\nconst secondItem = new Item({ name: 'mySecondItem' });\n\nboard.setItem('0|0', firstItem);\nboard.setItem('1|1', secondItem);\n\nboard.switchItem('0|0', '1|1');\n\nboard.getItem('0|0');\n// =\u003e { name: 'mySecondItem', ... }\n\nboard.getItem('1|1');\n// =\u003e { name: 'myFirstItem', ... }\n```\n\n### Empty Control\n\n```js\nboard.isEmpty('2|2');\n// =\u003e true\n```\n\n### Exist Control\n\n```js\nconst board = new Board({ x: 3, y: 3 });\n\nboard.isExistCoord('5|5');\n// =\u003e false\n```\n\n### Get Matrix\n\n```js\nboard.getBoardMatrix();\n\n/* =\u003e \n[\n  [{ item }, { item }, { item }], \n  [{ item }, { item }, { item }], \n  [{ item }, { item }, { item }]\n]\n*/\n```\n\n---\n\n## Roadmap\n\n| Name                   | Status | Link                                                            |\n| ---------------------- | ------ | --------------------------------------------------------------- |\n| Turkish Checkers       | WIP    | [Source](https://github.com/aykutkardas/turkish-checkers)       |\n| International Checkers | WIP    | [Source](https://github.com/aykutkardas/international-checkers) |\n| Chess                  | -      | -                                                               |\n| Match 3 Puzzle         | -      | -                                                               |\n| Go                     | -      | -                                                               |\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faykutkardas%2Fymir-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faykutkardas%2Fymir-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faykutkardas%2Fymir-js/lists"}