Skip to content

This is my first Rust project. It has many features, such as locales and even commands

License

Notifications You must be signed in to change notification settings

Oakchris1955/rust-guessing-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oakchris1955's simple guessing game

A command-line based number guessing game. Both installation and configuration are pretty straightforward

What is it?

This is a small game where you have to guess a secret number within a specified range. You are also given some hints about the secret number with every wrong try (for example, if the number is higher or lower than the once currently inputed). If you lose, you are displayed the secret number. You can exit whenever you want to by typing "q"

Installation

Compiling from source

To begin with:

  1. Install Rust from the Official Rust website
  2. Install Git from the Git website
  3. Open shell or command prompt and cd to the directory you wanna install the program
  4. Type git clone https://github.com/Oakchris1955/rust-guessing-game.git and cd rust-guessing-game
  5. Then, all you have to do is run compile.sh for Linux or compile.bat for Windows, which will generate an executable on the main directory of the cloned repository (Note: Remove the --release flag from the compile.* files to get the hinted number)

Configuration

In case you wanna edit the number of max tries you can have or mess with the number range, just edit config/options.jsonc (Note: Deleting it will just use the default options). Only total_tries, min_number and max_number fields will be read and the rest of them will be ignored.

About

This is my first Rust project. It has many features, such as locales and even commands

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages