{"id":31320610,"url":"https://github.com/danilo-quattrini/guessing-game","last_synced_at":"2025-09-25T16:51:30.349Z","repository":{"id":315973231,"uuid":"1061429625","full_name":"danilo-quattrini/guessing-game","owner":"danilo-quattrini","description":"Easy guessing number game in Python, due to practise the core concept of data types and function.","archived":false,"fork":false,"pushed_at":"2025-09-21T22:43:28.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-22T00:21:54.300Z","etag":null,"topics":["python","python-script","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","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/danilo-quattrini.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-21T22:08:47.000Z","updated_at":"2025-09-21T22:43:31.000Z","dependencies_parsed_at":"2025-09-22T00:21:55.984Z","dependency_job_id":"272e2d03-27da-4fff-b5a3-382d7f0d0df2","html_url":"https://github.com/danilo-quattrini/guessing-game","commit_stats":null,"previous_names":["danilo-quattrini/guessing-game"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/danilo-quattrini/guessing-game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danilo-quattrini%2Fguessing-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danilo-quattrini%2Fguessing-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danilo-quattrini%2Fguessing-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danilo-quattrini%2Fguessing-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danilo-quattrini","download_url":"https://codeload.github.com/danilo-quattrini/guessing-game/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danilo-quattrini%2Fguessing-game/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276953985,"owners_count":25734618,"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","status":"online","status_checked_at":"2025-09-25T02:00:09.612Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["python","python-script","python3"],"created_at":"2025-09-25T16:51:28.819Z","updated_at":"2025-09-25T16:51:30.337Z","avatar_url":"https://github.com/danilo-quattrini.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The guessing game\nThe objective of this project is to build a simple number guessing game \nthat challenges the user to identify a randomly selected number \nwithin a specified range. \n\nThe game begins by allowing the user to define a range by entering a lower and an upper bound (for example, from A to B).\nOnce the range is set, the system randomly selects an integer that falls within this user-defined interval. \nThe user's task is then to guess the chosen number using as few attempts as possible. \nThe game provides feedback after each guess, helping the user refine their next guess based on \nwhether their previous attempt was too high or too low.\n\n## How the Game Works\n\nTo understand how the number guessing game functions,  These example demonstrate how narrowing down the range intelligently—similar to a binary search can help guess the number efficiently.\n\n### Example 1: Guessing in a Range from 1 to 100\n\nSuppose the user defines the range from 1 to 100, and the system randomly selects 42 as the target number. The guessing process might look like this:\n\n    Guess 1: 50 → Too high\n    Guess 2: 25 → Too low\n    Guess 3: 37 → Too low\n    Guess 4: 43 → Too high\n    Guess 5: 40 → Too low\n    Guess 6: 41 → Too low\n    Guess 7: 42 → Correct!\n\n**Total Guesses: 7**\n\n# Requirements\n- Python 3.x version\n- IDE to work with it or use the terminal\n\n# How to install\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/danilo-quattrini/guessing-game.git\n2. Open the terminal and write this command:\n    ```bash\n    python main.py\n\n# Warning \nIf you don't have Python install, just check this link on how to do that\n[click here](https://www.python.org/downloads/)\n\n# License\n\nThis project is covered with the MIT license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanilo-quattrini%2Fguessing-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanilo-quattrini%2Fguessing-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanilo-quattrini%2Fguessing-game/lists"}