{"id":16315438,"url":"https://github.com/basile-henry/peg","last_synced_at":"2025-05-05T19:58:05.013Z","repository":{"id":86009706,"uuid":"123969528","full_name":"basile-henry/peg","owner":"basile-henry","description":"A small Peg Solitaire implementation in Elm","archived":false,"fork":false,"pushed_at":"2018-03-07T18:46:26.000Z","size":141,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-25T08:42:55.014Z","etag":null,"topics":["drag-and-drop","elm","game","peg-solitaire","style-elements"],"latest_commit_sha":null,"homepage":"https://peg.basilehenry.com","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/basile-henry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-03-05T19:41:20.000Z","updated_at":"2020-02-10T14:58:46.000Z","dependencies_parsed_at":"2023-03-04T21:30:46.890Z","dependency_job_id":null,"html_url":"https://github.com/basile-henry/peg","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/basile-henry%2Fpeg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basile-henry%2Fpeg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basile-henry%2Fpeg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basile-henry%2Fpeg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/basile-henry","download_url":"https://codeload.github.com/basile-henry/peg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239171537,"owners_count":19594041,"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":["drag-and-drop","elm","game","peg-solitaire","style-elements"],"created_at":"2024-10-10T21:57:31.871Z","updated_at":"2025-02-16T17:54:33.684Z","avatar_url":"https://github.com/basile-henry.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Peg Solitaire\n\n\nThis is a simple version of the [*Peg Solitaire*](https://en.wikipedia.org/wiki/Peg_solitaire) game. It support multiple basic board shapes and that's about it! :-)\n\nI wrote this game in order to learn bit more about Elm and in particular about the HTML5 drag and drop mechanics.\n\nThe game is available online at [http://peg.basilehenry.com/](http://peg.basilehenry.com/).\n\n![](res/peg.png)\n\n## How to play\n\nUse your mouse to drag and drop the pegs. You have to move peg to an empty\nspace, and only when they go over another peg. This other peg then goes away.\nTry to get as few pegs left as possible!\n\n## How to build\n\nThe game is written in [Elm](http://elm-lang.org/) so you'll need elm-make:\n\n```sh\nelm make src/Main.elm --output index.html\n```\n\nOr even simpler, use `elm reactor` and then open `http://localhost:8000/` in your browser.\n\n## Room for improvement\n\nI had a few more ideas for improving the game (if I ever get around to):\n\n- Better drag and drop animation (hide the peg that is being dragged)\n- Display `\"Game Over\"` when the game cannot progress further\n- Let the player create their own board shape\n\n## License\n\n[MIT License](LICENSE)\n\nCopyright (c) 2018 Basile Henry\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasile-henry%2Fpeg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasile-henry%2Fpeg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasile-henry%2Fpeg/lists"}