{"id":16530506,"url":"https://github.com/lioness100/guess-that-lang","last_synced_at":"2025-04-06T01:08:09.178Z","repository":{"id":54468316,"uuid":"522355611","full_name":"Lioness100/guess-that-lang","owner":"Lioness100","description":"CLI game to see how fast you can guess the language of a code block!","archived":false,"fork":false,"pushed_at":"2022-08-31T02:00:36.000Z","size":543,"stargazers_count":165,"open_issues_count":4,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-26T00:07:44.021Z","etag":null,"topics":["cli","cli-game","fun","game","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lioness100.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":"2022-08-08T00:15:18.000Z","updated_at":"2024-04-01T11:28:40.000Z","dependencies_parsed_at":"2022-08-13T16:40:23.745Z","dependency_job_id":null,"html_url":"https://github.com/Lioness100/guess-that-lang","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lioness100%2Fguess-that-lang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lioness100%2Fguess-that-lang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lioness100%2Fguess-that-lang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lioness100%2Fguess-that-lang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lioness100","download_url":"https://codeload.github.com/Lioness100/guess-that-lang/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419860,"owners_count":20936012,"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":["cli","cli-game","fun","game","rust"],"created_at":"2024-10-11T18:06:08.747Z","updated_at":"2025-04-06T01:08:09.160Z","avatar_url":"https://github.com/Lioness100.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Guess That Lang!\n\n[![Share Your High Score](https://img.shields.io/badge/-Share%20Your%20High%20Score!-blue?style=for-the-badge\u0026logo=github\u0026logoColor=black)](https://github.com/Lioness100/guess-that-lang/discussions/6)\n\nCLI game to see how fast you can guess the language of a code block!\n\n_If you like\nthe game, please consider giving a ⭐!_\n\n![Game Demo](https://user-images.githubusercontent.com/65814829/183973036-c283d147-8061-40c8-a306-916801d6c9bc.gif)\n\nCode is retrieved from either random repos or random gists on GitHub\nusing any of the top 24* most popular languages from the [Stack Overflow 2022\nDeveloper\nSurvey](https://survey.stackoverflow.co/2022/#most-popular-technologies-language).\n\u003csub\u003e*VBA is replaced with Dockerfile\u003c/sub\u003e\n\nThe code is then processed in a number of ways to make the\nexperience more enjoyable.\n\n## Installation\n\n\u003cdetails\u003e\n\u003csummary\u003eUsing Prebuilt Binaries\u003c/summary\u003e\n\n- \u003cdetails\u003e\n  \u003csummary\u003eWith Bash\u003c/summary\u003e\n\n  ```sh\n  curl -fsSL \"https://bina.egoist.dev/Lioness100/guess-that-lang\" | sh\n  ```\n\n  \u003e Using [Bina](https://bina.egoist.dev/)\n\n  \u003c/details\u003e\n\n- \u003cdetails\u003e\n  \u003csummary\u003eManual Installation\u003c/summary\u003e\n\n  Prebuilt binaries are available for Windows, Linux, and macOS and can be found\n  attached to the [latest release](https://github.com/Lioness100/guess-that-lang/releases/latest).\n\n  \u003c/details\u003e\n\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003eBuilding From Source\u003c/summary\u003e\n\n\u003e ⚠️ Rust 1.63.0 or higher is required to build. Rust can be updated with `rustup update`.\n\nInstall [Rust](https://www.rust-lang.org/tools/install) and then run:\n\n```sh\ncargo install guess-that-lang\n```\n\n\u003c/details\u003e\n\n\u003cbr /\u003e\n\n## Usage\n\nIt's strongly recommended to provide a [Github personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token). This will\nallow the game to make more Github requests before getting ratelimited. [Click\nhere to make\none](https://github.com/settings/tokens/new?description=Guess%20That%20Lang) (no\nscopes are required).\n\n\u003e ⚠️ Resizing the terminal window while playing will cause the game to go a bit\n\u003e wonky.\n\n```sh\n# Tokens will be stored in a config file so you only need to input them once.\nguess-that-lang --token \"XXX\" # or -t\n\n# Get code from gists rather than repos.\n# Repos generally provide better code quality, but gists require less API calls.\nguess-that-lang --provider gists # or -p\n\n# Wait 5 seconds after showing the options before starting to reveal code. (Default: 1500)\nguess-that-lang --wait 5000 # or -w\n\n# Reveal lines in random order instead of top to bottom. (Default: false)\nguess-that-lang --shuffle # or -s\n\n# Theme overrides will be stored in a config file so you only need to input them once.\nguess-that-lang --theme dark\nguess-that-lang --theme light\n```\n\n## Acknowledgements\n\nThis game takes heavy inspiration from both\n[guessthiscode](https://guessthiscode.com) and\n[stripcode](https://github.com/benawad/stripcode).\n\n## Contributing\n\nI'm a beginner at Rust, so if you see any code that can be improved or have any\ngeneral ideas, please let\nme know! Feel free to open an issue or a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flioness100%2Fguess-that-lang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flioness100%2Fguess-that-lang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flioness100%2Fguess-that-lang/lists"}