Git Product home page Git Product logo

numeron's Introduction

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

numeron's People

Contributors

reyalka avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.