Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.12 KB

README.md

File metadata and controls

30 lines (21 loc) · 1.12 KB

Guessing game

My first project was written in the Rust programming language

Table of Contents

Installation

To run this project, Rust must be installed first (follow Installation Rust). Then, run code below to build and run

$ cargo build
$ cargo run

Or just download the compiled program from here guessing-game-v0.1.0-apha and run it

$ ./guessing-game-v0.1.0-alpha

Have fun 😊

Usage

This is an easy game, you just need to guess a number and see the results from the program. If the program prompts Too small!, you should bet on a higher number, whereas when the program prompts Too big!, you should guess a smaller number. The program will prompt You win! when you guess the secret number correctly 🥳

License

This project was reimplement by me according to Chapter 2 in The Rust Book