{"id":19528313,"url":"https://github.com/meebuhs/led-tetris","last_synced_at":"2026-04-24T11:31:39.416Z","repository":{"id":105999847,"uuid":"145353270","full_name":"Meebuhs/led-tetris","owner":"Meebuhs","description":"Raspberry Pi driven tetris AI with six falling pieces, displayed on an array of led matrices","archived":false,"fork":false,"pushed_at":"2020-06-20T14:24:19.000Z","size":57622,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T02:32:02.141Z","etag":null,"topics":["ai","heuristics","led-matrix","python","raspberry-pi","tetris"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Meebuhs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-20T01:52:39.000Z","updated_at":"2022-08-10T15:49:49.000Z","dependencies_parsed_at":"2023-07-04T13:50:02.740Z","dependency_job_id":null,"html_url":"https://github.com/Meebuhs/led-tetris","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Meebuhs/led-tetris","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meebuhs%2Fled-tetris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meebuhs%2Fled-tetris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meebuhs%2Fled-tetris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meebuhs%2Fled-tetris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Meebuhs","download_url":"https://codeload.github.com/Meebuhs/led-tetris/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meebuhs%2Fled-tetris/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263375302,"owners_count":23457316,"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":["ai","heuristics","led-matrix","python","raspberry-pi","tetris"],"created_at":"2024-11-11T01:18:21.494Z","updated_at":"2026-04-24T11:31:34.397Z","avatar_url":"https://github.com/Meebuhs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LED tetris\n\nAn AI which uses a heuristic to autoplay tetris with multiple concurrently falling tetrominoes on an array of led \nmatrices. \n\nThe tetris game code features a lot of bit bashing as it was originally a uni project written in C to run on an \nATmega324A microcontroller.\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"docs/led-tetris-demo.gif\"\u003e\n\u003c/p\u003e\n\n## Getting started\n### Physical setup\n\nThe project runs on a raspberry pi and is displayed on six 32x32 P6 SMD3528 LED matrices. These matrices must be \nconnected to the raspberry pi as outlined in the \n[rpi-rgb-led-matrix wiring documentation](https://github.com/hzeller/rpi-rgb-led-matrix/blob/master/wiring/md) along \nwith a sufficient power supply. \n\n### Software setup\n\nFirst install the project requirements.\n\n```shell\nsudo apt-get update \u0026\u0026 sudo apt-get install python3-dev python3-pillow -y\nmake build-python PYTHON=$(which python3)\nsudo make install-python PYTHON=$(which python3)\n```\n\nThese instructions are correct as of 20 June 2020. Up to date installation instructions may be found in the \ndocumentation of the [requirements](#requirements).\n\nThen download and run the script.\n\n```shell\ngit clone https://github.com/Meebuhs/led-tetris.git\ncd led-tetris\nsudo python3 Game.py \n```\n\n## Configuration\n\nThere are some editable settings in Constant.py.\n\n| Property        | Description                                                       |\n|-----------------|-------------------------------------------------------------------|\n| CHAIN_LENGTH    | The length of the led matrix chains                               |\n| PARALLEL_CHAINS | The number of led matrix chains                                   |\n| BOARD_WIDTH     | The pixel width of a single matrix                                |\n| BOARD_HEIGHT    | The pixel height of a single matrix                               |\n| NUM_GAMES       | The number of tetrominoes that drop at one time                   |\n| GAME_SPEED      | The time it takes for a tetromino to drop one line (milliseconds) | \n| FACTORS         | The scores assigned by the heuristic for a given condition        |\n\n\n## Requirements\n[rpi-rgb-led-matrix](https://github.com/hzeller/rpi-rgb-led-matrix)\n\n[Pillow](https://github.com/python-pillow/Pillow)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeebuhs%2Fled-tetris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeebuhs%2Fled-tetris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeebuhs%2Fled-tetris/lists"}