{"id":21181800,"url":"https://github.com/altenwald/leprechaun","last_synced_at":"2025-07-10T00:31:30.451Z","repository":{"id":41136204,"uuid":"180023877","full_name":"altenwald/leprechaun","owner":"altenwald","description":"Leprechaun Game wrote in Elixir","archived":false,"fork":false,"pushed_at":"2023-11-03T10:17:16.000Z","size":61960,"stargazers_count":12,"open_issues_count":3,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-05-01T11:37:46.444Z","etag":null,"topics":["elixir","elixir-game","game","shell-game"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/altenwald.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},"funding":{"github":["altenwald"],"patreon":"altenwald","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2019-04-07T21:06:08.000Z","updated_at":"2023-10-03T15:54:38.000Z","dependencies_parsed_at":"2023-01-21T18:02:19.890Z","dependency_job_id":null,"html_url":"https://github.com/altenwald/leprechaun","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/altenwald%2Fleprechaun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altenwald%2Fleprechaun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altenwald%2Fleprechaun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altenwald%2Fleprechaun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/altenwald","download_url":"https://codeload.github.com/altenwald/leprechaun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225606651,"owners_count":17495551,"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":["elixir","elixir-game","game","shell-game"],"created_at":"2024-11-20T17:52:29.834Z","updated_at":"2024-11-20T17:52:30.586Z","avatar_url":"https://github.com/altenwald.png","language":"Elixir","funding_links":["https://github.com/sponsors/altenwald","https://patreon.com/altenwald","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=RC5F8STDA6AXE"],"categories":[],"sub_categories":[],"readme":"# Leprechaun\n\n![build status](https://github.com/altenwald/leprechaun/actions/workflows/check.yml/badge.svg)\n\nLeprechaun is a game based on [Gems of War](https://gemsofwar.com/), the [Threasure Hunt](https://gemsofwar.zendesk.com/hc/en-us/articles/205368765-Treasure-Hunt-and-Treasure-Maps).\n\nThe base of the game is swap pieces, only one each time and only with the ones in north, south, east or west of the source one. The combinations should be made by 3 or more in vertical or horizontal way. If you achieve to match 4 then you won't loose a turn and if you achieve match more than 4 then you'll obtain an extra turn. The game starts with 10 turns and ends when you run out of turns.\n\nIf you love this content and want we can generate more, you can support us:\n\n[![paypal](https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=RC5F8STDA6AXE)\n\n## Checking code\n\nThe source code has implemented different tools to ensure we are arriving to a minimal internal quality, that's because we are working to get the output of this command green:\n\n```\nmix check\n```\n\n## Installation\n\nIt's easy to install. You only needs to have [Elixir](https://elixir-lang.org/install.html) installed and run this to obtain the code:\n\n```\ngit clone git@github.com:altenwald/leprechaun.git\n```\n\nBecause we use [Ecto](https://hexdocs.pm/ecto/Ecto.html) and [Mnesia](https://en.wikipedia.org/wiki/Mnesia) to store the high scores you'll need to run these tasks before:\n\n```\nmix do ecto.create, ecto.migrate\n```\n\nThen you can see there are a new directory in that path called `leprechaun`. You can go inside using the terminal and write:\n\n```\niex -S mix run\n```\n\nThe Elixir shell will be running after the compilation. You can start the game using this command:\n\n```elixir\nLeprechaun.Console.run :mygame\n```\n\nFollow the instructions and enjoy!\n\n### Web Interface\n\nVersion 0.2 has a new addition and it's [cowboy][1] and [jason][2] among others to provide an HTTP\ninterface to let us to play via web.\n\nVersion 1.0 has been a rewrite of the website using [Phaser3][3] \n\n[![Leprechaun WebGame](screenshot_web.png)](screenshot_web.png)\n\nYou only need to run the project as showed above (in the previous section) and then access via this link:\n\nhttp://localhost:4012\n\nYou can change the configuration to listen in another port and even to use IPv6 instead.\n\nEnjoy!\n\n[1]: https://github.com/ninenines/cowboy\n[2]: https://github.com/michalmuskala/jason\n[3]: https://phaser.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltenwald%2Fleprechaun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faltenwald%2Fleprechaun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltenwald%2Fleprechaun/lists"}