Skip to content

My first Rust tutorial program that I modified a bit

Notifications You must be signed in to change notification settings

tahoe/rust-guess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Play a game of guess that number!

To make this easier on me since I'm new, if whatever you enter isn't convertable to a float I will default to 128 and you will get however many guesses 128 requires

Help output when nothing is given

error: The following required arguments were not provided:
    <num>

USAGE:
    gg <num>

For more information try --help

Default when input is broken

gg ff?
Let's play "Guess that numbrer!" 7
I'm thinking of a number from 1 to 128
You get 7 chances before I start calling you names
Chance 1, Please input your guess:

Examples

gg 500
Let's play "Guess that number!"
I'm thinking of a number from 1 to 500
You get 9 chances before I start calling you names
Chance 1, Please input your guess:
gg 500000
Let's play "Guess that number!"
I'm thinking of a number from 1 to 500000
You get 19 chances before I start calling you names
Chance 1, Please input your guess:

About

My first Rust tutorial program that I modified a bit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages