{"id":22925474,"url":"https://github.com/ringtailsoftware/zigtris","last_synced_at":"2025-04-12T16:35:07.953Z","repository":{"id":263457021,"uuid":"890014163","full_name":"ringtailsoftware/zigtris","owner":"ringtailsoftware","description":"A minimal terminal Tetris written in Zig","archived":false,"fork":false,"pushed_at":"2025-01-02T00:46:02.000Z","size":613,"stargazers_count":19,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T22:40:50.416Z","etag":null,"topics":["zig-package"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/ringtailsoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-11-17T19:50:13.000Z","updated_at":"2025-02-06T07:46:02.000Z","dependencies_parsed_at":"2025-01-02T01:27:16.731Z","dependency_job_id":null,"html_url":"https://github.com/ringtailsoftware/zigtris","commit_stats":null,"previous_names":["ringtailsoftware/zigtris"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ringtailsoftware%2Fzigtris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ringtailsoftware%2Fzigtris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ringtailsoftware%2Fzigtris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ringtailsoftware%2Fzigtris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ringtailsoftware","download_url":"https://codeload.github.com/ringtailsoftware/zigtris/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248597061,"owners_count":21130802,"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":["zig-package"],"created_at":"2024-12-14T09:00:39.569Z","updated_at":"2025-04-12T16:35:07.946Z","avatar_url":"https://github.com/ringtailsoftware.png","language":"Zig","readme":"# Zigtris\n\nA minimal terminal Tetris written in Zig. Tested with Zig 0.14.0\n\n`zig build run`\n\nCursor keys to move, space to drop, `q` to quit.\n\n![](demo.gif)\n\n# I just want to play! don't make me install Zig\n\n    docker run --rm -it -v `pwd`:/app -w /app kassany/alpine-ziglang:0.13.0 zig build run\n\n# Run as a service via ssh\n\n    ./run-as-service.sh\n\n    ssh zigtris@localhost -p 2022\n\n# Notes\n\nSome notes for anyone looking at the code:\n\n - `Display` is a thin wrapper on top of the `mibu` terminal library, it provides a double buffered one pixel per character interface where it only redraws changed pixels on the buffer flip\n - `Stage` is the game stage and provides a square pixel interface on top of `Display` (by printing two chars for each pixel)\n - `Player` holds the `Tetronimo` shapes and movement logic\n - `Debris` holds the list of fallen blocks for hitchecking and completed line detection\n\n# License\n\nMIT\n\n","funding_links":[],"categories":["\u003ca name=\"games\"\u003e\u003c/a\u003eGames","Table of Contents","Multimedia \u0026 Graphics"],"sub_categories":["Game Development"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fringtailsoftware%2Fzigtris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fringtailsoftware%2Fzigtris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fringtailsoftware%2Fzigtris/lists"}