{"id":27416106,"url":"https://github.com/ephbaum/rust-book-ch-2-guessing-game","last_synced_at":"2025-10-07T23:18:10.119Z","repository":{"id":197093979,"uuid":"697982796","full_name":"ephbaum/rust-book-ch-2-guessing-game","owner":"ephbaum","description":"pushing up this project I did from the rust book while back as I'm trying to get back to where I was working through the rust book","archived":false,"fork":false,"pushed_at":"2023-09-30T17:49:20.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-02T06:08:47.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":false,"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/ephbaum.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}},"created_at":"2023-09-28T22:10:37.000Z","updated_at":"2023-09-28T22:18:54.000Z","dependencies_parsed_at":"2023-09-29T00:55:33.845Z","dependency_job_id":null,"html_url":"https://github.com/ephbaum/rust-book-ch-2-guessing-game","commit_stats":null,"previous_names":["ephbaum/rust-book-ch-2-guessing-game"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ephbaum%2Frust-book-ch-2-guessing-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ephbaum%2Frust-book-ch-2-guessing-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ephbaum%2Frust-book-ch-2-guessing-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ephbaum%2Frust-book-ch-2-guessing-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ephbaum","download_url":"https://codeload.github.com/ephbaum/rust-book-ch-2-guessing-game/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248858005,"owners_count":21173087,"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":[],"created_at":"2025-04-14T09:46:37.795Z","updated_at":"2025-10-07T23:18:05.096Z","avatar_url":"https://github.com/ephbaum.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust Chapter 2\n\nI worked through this a while back using the interactive Rust Book found [here](https://rust-book.cs.brown.edu/ch02-00-guessing-game-tutorial.html)\n\nThis is pretty close to the same as the book directs except that I took a few liberties:\n\n1. Minor tweak to the output\n    - Directed user to Ctrl-C to quit\n    - Directed user to enter between 1-100\n2. Added error messaging when user enters something other than a number\n3. Added check for number to be between 1 and 100\n4. Added a incrementer to track the number of guesses the user makes, and show them when they win!\n    - It's like a score :sweat_smile:\n\nOverall this is still a super simple program, but it's a fun introduction to using Rust and some of its conventions\n\nI found it most interesting that they immediately introduce `match` statements but not `if` control statements\n\nhmu :call_me_hand: if you wanna chat about how [Rust](https://www.rust-lang.org/) is so darn cool!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fephbaum%2Frust-book-ch-2-guessing-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fephbaum%2Frust-book-ch-2-guessing-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fephbaum%2Frust-book-ch-2-guessing-game/lists"}