{"id":15008932,"url":"https://github.com/gimploo/numberguess","last_synced_at":"2026-02-13T19:31:41.763Z","repository":{"id":130564380,"uuid":"143149764","full_name":"gimploo/NumberGuess","owner":"gimploo","description":"Wanna play a game? In this project, I build a program that rolls a pair of dice and asks the user to guess the sum. If the user's guess is equal to the total value of the dice roll, the user wins! Otherwise, the computer wins. ","archived":false,"fork":false,"pushed_at":"2018-09-01T09:44:09.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-12T10:45:56.075Z","etag":null,"topics":["python-2"],"latest_commit_sha":null,"homepage":"","language":null,"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/gimploo.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-01T11:56:49.000Z","updated_at":"2018-09-01T09:46:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"9909bf1b-b71f-44a3-87f4-58f1344d45e7","html_url":"https://github.com/gimploo/NumberGuess","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gimploo/NumberGuess","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gimploo%2FNumberGuess","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gimploo%2FNumberGuess/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gimploo%2FNumberGuess/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gimploo%2FNumberGuess/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gimploo","download_url":"https://codeload.github.com/gimploo/NumberGuess/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gimploo%2FNumberGuess/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271650860,"owners_count":24796725,"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-08-22T02:00:08.480Z","response_time":65,"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-2"],"created_at":"2024-09-24T19:21:45.828Z","updated_at":"2026-02-13T19:31:41.623Z","avatar_url":"https://github.com/gimploo.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# NumberGuess\nWanna play a game? In this project, I had build a program that rolls a pair of dice and asks the user to guess the sum. If the user's guess is equal to the total value of the dice roll, the user wins! Otherwise, the computer wins. \n\n    from random import randint\n    from time import sleep\n\n    def get_user_guess():\n      guess = int(raw_input(\"Guess a number: \"))\n      return guess\n\n    def roll_dice(number_of_sides):\n\n      first_roll = randint(1,number_of_sides)\n      second_roll = randint(1,number_of_sides)\n\n      max_val = number_of_sides * 2\n      print \"The maximum value these dices together can hold is %d \" % (max_val)\n\n      guess = get_user_guess()\n\n      if guess \u003e max_val:\n        print  \"No guessing higher than the maximum possible value!\"\n\n      else:\n          print \"Rolling...\"\n          sleep(2)\n          print \"The first roll came up to %d\" % (first_roll)\n          sleep(1)\n          print \"The second roll came up to %d\" % (second_roll)\n          sleep(1)\n          total_roll = first_roll + second_roll\n          print \"Result...\"\n          sleep(1)\n\n          if guess == total_roll:\n              print \"Congratulations!, you guessed it right.\"\n          else:\n              print \"You lost, try again\"\n\n\n\n\n    roll_dice(6)  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgimploo%2Fnumberguess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgimploo%2Fnumberguess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgimploo%2Fnumberguess/lists"}