{"id":13821318,"url":"https://github.com/samtay/snake","last_synced_at":"2025-04-21T09:32:46.237Z","repository":{"id":48972753,"uuid":"95513851","full_name":"samtay/snake","owner":"samtay","description":"A terminal interface for Snake","archived":false,"fork":false,"pushed_at":"2024-05-03T22:35:13.000Z","size":73,"stargazers_count":61,"open_issues_count":0,"forks_count":20,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-01T12:04:05.964Z","etag":null,"topics":["brick","haskell","haskell-tutorial","snake-game","terminal-game","vty"],"latest_commit_sha":null,"homepage":"https://samtay.github.io/articles/brick.html#snake","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samtay.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}},"created_at":"2017-06-27T03:29:43.000Z","updated_at":"2025-02-18T18:43:37.000Z","dependencies_parsed_at":"2022-08-30T09:40:34.867Z","dependency_job_id":null,"html_url":"https://github.com/samtay/snake","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samtay%2Fsnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samtay%2Fsnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samtay%2Fsnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samtay%2Fsnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samtay","download_url":"https://codeload.github.com/samtay/snake/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250032232,"owners_count":21363799,"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":["brick","haskell","haskell-tutorial","snake-game","terminal-game","vty"],"created_at":"2024-08-04T08:01:19.808Z","updated_at":"2025-04-21T09:32:45.866Z","avatar_url":"https://github.com/samtay.png","language":"Haskell","readme":"# snake [![Build Status](https://github.com/samtay/snake/actions/workflows/ci.yaml/badge.svg)](https://github.com/samtay/snake/actions/workflows/ci.yaml)\n\nA terminal interface for Snake. This is kind of a toy program, written as a demonstration of the\n[brick](https://hackage.haskell.org/package/brick-0.18) library.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./docs/img/example.gif\"/\u003e\n\u003c/p\u003e\n\nIt is part of my [Introduction to Brick](https://samtay.github.io/posts/introduction-to-brick)\ntutorial. Feel free to leave issues here or on\n[samtay/samtay.github.io](https://github.com/samtay/samtay.github.io)\nif you spot any issues or want to leave feedback.\n\n## installation\nInstallation on MacOS can be accomplished via homebrew:\n```shell\nbrew install samtay/tui/snake\n```\nArch Linux users can install from the [AUR](https://aur.archlinux.org/packages/snake-terminal-git/):\n```shell\nyay -S snake-terminal-git # or yaourt -S snake-terminal-git, etc.\n```\nOthers can install from source with [stack](https://docs.haskellstack.org/en/stable/README/#how-to-install):\n```shell\ngit clone https://github.com/samtay/snake.git\ncd snake\nstack install snake\n```\nIf you are on Debian and want to install via package manager, feel free to open an issue and I'll try to get around to it.\n\n## playing the game\n\nAfter launching the game, press any of the arrow keys or the letters 'k', 'j', 'l', or 'h' to start the game.\n","funding_links":[],"categories":["Haskell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamtay%2Fsnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamtay%2Fsnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamtay%2Fsnake/lists"}