{"id":15634006,"url":"https://github.com/timjb/halma","last_synced_at":"2025-07-17T06:05:08.253Z","repository":{"id":25148132,"uuid":"28570530","full_name":"timjb/halma","owner":"timjb","description":"Chinese Checkers Haskell library, GUI application and Telegram bot","archived":false,"fork":false,"pushed_at":"2021-05-09T16:29:03.000Z","size":552,"stargazers_count":16,"open_issues_count":3,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-30T15:55:07.764Z","etag":null,"topics":["chinese-checkers","diagrams","game-ai","haskell","serverless","telegram-bot"],"latest_commit_sha":null,"homepage":"http://hackage.haskell.org/package/halma","language":"Haskell","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/timjb.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}},"created_at":"2014-12-28T20:10:06.000Z","updated_at":"2023-11-23T07:50:23.000Z","dependencies_parsed_at":"2022-08-26T16:00:32.566Z","dependency_job_id":null,"html_url":"https://github.com/timjb/halma","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/timjb/halma","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timjb%2Fhalma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timjb%2Fhalma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timjb%2Fhalma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timjb%2Fhalma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timjb","download_url":"https://codeload.github.com/timjb/halma/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timjb%2Fhalma/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265237636,"owners_count":23732513,"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":["chinese-checkers","diagrams","game-ai","haskell","serverless","telegram-bot"],"created_at":"2024-10-03T10:50:59.921Z","updated_at":"2025-07-17T06:05:08.234Z","avatar_url":"https://github.com/timjb.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Halma [![Build Status][travis-image]][travis-url] [![Hackage version][hackage-image]][hackage-url] [![Hackage dependencies][hackage-deps-image]][hackage-deps-url] [![Code Climate][codeclimate-image]][codeclimate-url]\n\n## The library\n\nSee the docs on [Hackage][hackage-url].\n\n## The GTK application\n\n![Halma Game][game-image]\n![Halma Menu][menu-image]\n\n**Installation**: Make sure you have GTK and Cairo installed, then run\n\n```bash\n$ cabal install halma-gui\n$ halma-gui\n```\n\nIf cabal fails to solve the version constraints, try using [Stackage](http://www.stackage.org/).\n\n\u003cimg align=\"right\" src=\"https://cdn.rawgit.com/timjb/halma/master/images/telegram-chat.jpg\" alt=\"Chatbot screenshot\" /\u003e\n\n## The Telegram Chatbot\n\nThere is a chatbot running on AWS Lambda: [@halma_bot](http://telegram.me/halma_bot)\n\n(Please be patient, it sometimes needs a few seconds to respond.)\n\n### Building and deploying the Telegram bot on AWS Lambda\n\nThe following command builds and deploys the Telegram bot on AWS Lambda:\n\n```bash\n$ python3 build_and_deploy_to_lambda.py \\\n    --telegram-token 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11 \\\n    --stack-name telegram-halma-stack \\\n    --code-s3-bucket my-code-bucket # the executable will be uploaded to this bucket\n```\n\nThis Python 3.7 script depends on `stack`, `docker` and `awscli` being installed (and in the `PATH`). When `nix-shell` is installed, this script can also be called using\n\n```bash\n$ ./build_and_deploy_to_lambda.py [...]\n```\n\nThis will automatically install the required dependencies on the first run. Before the first run, you also need to run:\n\n```bash\n$ stack docker pull # download the Docker image for building\n$ aws configure # configure authentication and default region (if you haven't done so already)\n```\n\nIf deployment is successful, the script prints out the URL where the Lambda function can be invoked:\n\n```\n[...]\nWebhook URL: https://abcdefghijk.execute-api.eu-central-1.amazonaws.com/Prod/halma-telegram-bot\n```\n\nNow, you may run a simple smoke test:\n\n```bash\n$ curl --header \"Content-Type: application/json\" \\\n       --request POST \\\n       --data '{\"update_id\":123412341234}' \\\n       https://abcdefghijk.execute-api.eu-central-1.amazonaws.com/Prod/halma-telegram-bot\n```\n\nTo configure the Telegram Bot API to call the created lambda function when there is an update run\n\n```bash\ncurl -X POST \\\n  --url 'https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/setWebhook' \\\n  -d 'url=https://abcdefghijk.execute-api.eu-central-1.amazonaws.com/Prod/halma-telegram-bot'\n```\n\nwith `123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11` replaced by your Telegram API access token.\n\n[travis-image]: https://img.shields.io/travis/timjb/halma.svg\n[travis-url]: http://travis-ci.org/timjb/halma\n[hackage-image]: https://img.shields.io/hackage/v/halma.svg?style=flat\n[hackage-url]: http://hackage.haskell.org/package/halma\n[hackage-deps-image]: https://img.shields.io/hackage-deps/v/halma.svg?style=flat\n[hackage-deps-url]: http://packdeps.haskellers.com/feed?needle=halma\n[codeclimate-image]: https://codeclimate.com/github/timjb/halma/badges/gpa.svg\n[codeclimate-url]: https://codeclimate.com/github/timjb/halma\n\n[game-image]: https://cdn.rawgit.com/timjb/halma/master/images/halma-game.png\n[menu-image]: https://cdn.rawgit.com/timjb/halma/master/images/halma-menu.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimjb%2Fhalma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimjb%2Fhalma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimjb%2Fhalma/lists"}