tannerdolby / rust-guessing-game

A random number guessing game built with Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Guess a random number

Classic guess a random number game. Walkthrough provided by Chapter 2 of the Rust documentation book.

Getting started

  1. Make sure you have Rust installed.

  2. Clone this repository

https://github.com/tannerdolby/rust-guessing-game.git
  1. Open command line or terminal and run:
cargo check
  • This command quickly checks your code to make sure it compiles but doesn’t produce an executable.
  1. Run and play
cargo run

Notes

Feel free to edit the secret_number variable within /src/main.rs to increase the random number range.

About

A random number guessing game built with Rust.


Languages

Language:Makefile 95.3%Language:Rust 4.7%