{"id":13895079,"url":"https://github.com/MichaelS11/go-tetris","last_synced_at":"2025-07-17T10:32:26.469Z","repository":{"id":47583699,"uuid":"86378956","full_name":"MichaelS11/go-tetris","owner":"MichaelS11","description":"Golang Tetris for console window with optional AI","archived":true,"fork":false,"pushed_at":"2021-08-23T09:48:31.000Z","size":201,"stargazers_count":74,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-25T00:33:18.771Z","etag":null,"topics":["go","golang","golang-tetris","tetris"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"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/MichaelS11.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-03-27T20:05:22.000Z","updated_at":"2024-08-11T09:10:20.000Z","dependencies_parsed_at":"2022-08-30T21:11:12.090Z","dependency_job_id":null,"html_url":"https://github.com/MichaelS11/go-tetris","commit_stats":null,"previous_names":["michaels11/tetris"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MichaelS11/go-tetris","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelS11%2Fgo-tetris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelS11%2Fgo-tetris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelS11%2Fgo-tetris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelS11%2Fgo-tetris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MichaelS11","download_url":"https://codeload.github.com/MichaelS11/go-tetris/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelS11%2Fgo-tetris/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265595426,"owners_count":23794731,"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":["go","golang","golang-tetris","tetris"],"created_at":"2024-08-06T18:01:58.651Z","updated_at":"2025-07-17T10:32:26.211Z","avatar_url":"https://github.com/MichaelS11.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Go Tetris\n\nGolang Tetris for console window with optional AI\n\n## Features include\n\n- AI (use i key to toggle)\n- Lock delay\n- Next piece\n- Ghost piece\n- Top scores\n- Board choices\n- Edit boards\n\n## Compile\n\n```\ngo get github.com/MichaelS11/go-tetris\ngo install github.com/MichaelS11/go-tetris\n```\n\n## Play\n\nThen run the binary created, go-tetris or go-tetris.exe\n\n## Keys start screen\n\n| Key | Action |\n| --- | --- |\n| \u0026larr; | previous board |\n| \u0026rarr; | next board |\n| spacebar | start game |\n| ctrl e | edit board |\n| q | quit |\n\n## Keys during game\n\n| Key | Action |\n| --- | --- |\n| \u0026larr; | left move |\n| \u0026rarr; | right move |\n| \u0026darr; | soft drop |\n| \u0026uarr; | hard drop |\n| spacebar | hard drop |\n| z | left rotate |\n| x | right rotate |\n| p | pause |\n| q | quit |\n| i | toggle AI |\n\n## Keys edit mode\n\n| Key | Action |\n| --- | --- |\n| \u0026larr; | move cursor left |\n| \u0026rarr; | move cursor right |\n| \u0026darr; | move cursor down |\n| \u0026uarr; | move cursor up |\n| z | rotate left |\n| x | rotate right |\n| c | cyan block - I |\n| b | blue block - J |\n| w | white block - L |\n| e | yellow block - O |\n| g | green block - S |\n| a | magenta block - T |\n| r | red block - Z |\n| f | free block |\n| ctrl b | change board size |\n| ctrl s | save board |\n| ctrl n | save board as new |\n| ctrl k | delete board |\n| ctrl o | empty board |\n| ctrl q | quit edit mode |\n\n## Screenshots\n\n![alt text](https://raw.githubusercontent.com/MichaelS11/tetris/master/screenshots/tetris.png \"Go Tetris\")\n\n![alt text](https://raw.githubusercontent.com/MichaelS11/tetris/master/screenshots/heart.png \"Golang Tetris Heart\")\n\n![alt text](https://raw.githubusercontent.com/MichaelS11/tetris/master/screenshots/editmode.png \"Edit Mode Peace Symbol\")\n\n![alt text](https://raw.githubusercontent.com/MichaelS11/tetris/master/screenshots/highscores.png \"Tetris High Scores\")\n\n## To do\n\n* Improve AI speed (slow on large boards)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMichaelS11%2Fgo-tetris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMichaelS11%2Fgo-tetris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMichaelS11%2Fgo-tetris/lists"}