Skip to content

reyalka/numeron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Numeron

Numeron is a command-line game implemented in Rust. The game generates a random number and the player has to guess it. Original rules is from a Japanese TV show (Wikipedia(Japanese))

Game Rules

  1. The game generates a random number. You can decide the number of digits freely.
  2. The player guesses the number. You can get information about hit and blow.
    • hit means the count of numbers that are in the same place as in the correct answer.
    • blow means the count of numbers that are in a different place from the correct answer, but the number is included in the correct answer.
  3. The player continues to guess until they guess the correct number.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Rust (edition 2021)

Installing

Clone the repository:

git clone https://github.com/reyalka/numeron.git
cd numeron

Build the project:

cargo build

Usage

Run the game:

cargo run

The game will generate a random number. Your task is to guess this number. After each guess, the game will give you a hint.

Thanks

  • Rust - The programming language used
  • clap - Command Line Argument Parser for Rust
  • colored - For colorizing terminal output
  • inquire - Rust library for building interactive prompts
  • rand - Rust library for random number generation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages