Skip to content
Snippets Groups Projects
Commit 83fd1386 authored by Anders Nilsson's avatar Anders Nilsson
Browse files

Added new game

parent 55d7ef29
No related branches found
No related tags found
No related merge requests found
[root]
name = "guessing_game"
version = "0.1.0"
[package]
name = "guessing_game"
version = "0.1.0"
authors = ["Anders Nilsson <anders.nilsson@control.lth.se>"]
use std::io;
fn main() {
println!("Guess the number!");
println!("Please input your guess.");
let mut guess = String::new();
io::stdin().read_line(&mut guess).ok().expect("Failed to read line");
println!("You guessed: {}",guess);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment