{"id":16064757,"url":"https://github.com/trevarj/dotris","last_synced_at":"2026-03-10T11:05:43.624Z","repository":{"id":148917840,"uuid":"618444596","full_name":"trevarj/dotris","owner":"trevarj","description":"A mini Tetris clone made with dots","archived":false,"fork":false,"pushed_at":"2023-11-23T10:50:25.000Z","size":156,"stargazers_count":23,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T12:47:39.157Z","etag":null,"topics":["c","game","ncurses","terminal","terminal-game","tetris","tetris-clone"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trevarj.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":"2023-03-24T13:36:27.000Z","updated_at":"2024-06-18T02:49:54.000Z","dependencies_parsed_at":"2024-10-27T17:21:40.889Z","dependency_job_id":"bbfa165e-c9f4-4086-89bd-452340ed8dc2","html_url":"https://github.com/trevarj/dotris","commit_stats":{"total_commits":63,"total_committers":1,"mean_commits":63.0,"dds":0.0,"last_synced_commit":"66c24cff32188097c401a1543271b814c0424e97"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/trevarj/dotris","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trevarj%2Fdotris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trevarj%2Fdotris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trevarj%2Fdotris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trevarj%2Fdotris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trevarj","download_url":"https://codeload.github.com/trevarj/dotris/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trevarj%2Fdotris/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30331654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["c","game","ncurses","terminal","terminal-game","tetris","tetris-clone"],"created_at":"2024-10-09T05:09:27.146Z","updated_at":"2026-03-10T11:05:43.605Z","avatar_url":"https://github.com/trevarj.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `⣼⢠⡄⢤⠄⡤⢠⢀⡤`\n\nMini Tetris made with dots\n\n![gameplay](./dotris.gif)\n\n- [How To Play](#how-to-play)\n    - [Controls](#controls)\n    - [Terminal Zoom](#terminal-zoom)\n- [Mechanics](#mechanics)\n    - [Scoring](#scoring)\n    - [Levels](#levels)\n- [Troubleshooting](#troubleshooting)\n- [Installing](#installing)\n- [Building](#building)\n    - [GCC/Clang](#gccclang)\n    - [GNU Make](#gnu-make)\n\n## How To Play\n\n### Controls\n\nKey           | Description\n---           | ---\n`Left Arrow`  | Move left\n`Right Arrow` | Move right\n`Up Arrow`    | Rotate clockwise\n`Down Arrow`  | Soft drop (move down)\n`Spacebar`    | Hard drop\n`C`           | Hold Tetrimino / Restore Held\n`Q`           | Quit game\n\n### Terminal Zoom\n\nIt is helpful if you increase the font size in your terminal emulator for a \"regular\"\nsized game.\n\n## Mechanics\n\n### Scoring\n\nThe scoring is based on the BPS version of Tetris:\n\nLines      | Points\n---        | ---\n1          | 40\n2          | 100\n3          | 300\n4 (tetris) | 1200\n\nIf the piece used to clear was hard dropped you get 1 point per row added to the point amount.\n\nEach level acts as a multiplier to the above table; i.e on level two, clearing one line is 80.\n\n### Levels\n\nEvery 10 lines cleared the speed of the falling piece increases by 40% and the grid is wiped.\n\n## Troubleshooting\n\nIf the pieces are not rendering correctly (weird spacing between dots), you will probably\nneed to install another font that has custom\n[Braille pattern](https://en.wikipedia.org/wiki/Braille_Patterns) characters.\n\nSome fonts that have decent characters for Tetris pieces: \n[Terminus](https://files.ax86.net/terminus-ttf/), \n[Cozette](https://github.com/slavfox/Cozette), \n[Spleen](https://www.cambus.net/spleen-monospaced-bitmap-fonts/)\n\nIf you use Kitty terminal emulator, these characters will be\n[rendered programmatically](https://github.com/kovidgoyal/kitty/discussions/6152), not\nusing the configured font.\n\n## Installing\n\nCurrently only available through the [AUR](https://aur.archlinux.org/packages/dotris-git).\n\n## Building\n\n```\ngit clone https://github.com/trevarj/dotris \u0026\u0026 cd dotris\n```\n\n### GCC/Clang\n```\n$(CC) -lncursesw -Iinclude/ src/main.c src/tetriminos.c src/grid.c -o dotris\n```\n\n### GNU Make\n```\nmake\n# or\n# sudo make install\n```\n\nNow you can run the `dotris` binary\n\n```\n./dotris\n```\n\n### Development\n\nGenerating clangd metadata with `bear`:\n\n```\nbear -- make\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrevarj%2Fdotris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrevarj%2Fdotris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrevarj%2Fdotris/lists"}