Giter Site home page Giter Site logo

color-guess's Introduction

Color guess game

First time with rust development. It's a small terminal game which covers more or less the 8 first chapters of the "Rust programming language book".

For now there is no tests, (not yet) and the code is not perfect.

It's intended to work on Linux systems.

How to play

Open your terminal and run color-guess

A 5 colors sequence will be define randomly among

  • Red ๐ŸŸฅ
  • Orange ๐ŸŸง
  • Yellow ๐ŸŸจ
  • Gree ๐ŸŸฉ
  • Blue ๐ŸŸฆ
  • Purple ๐ŸŸช
  • White โฌœ

You'll have to guess it. 5 rounds, each round you will be prompted. Just enter a sequence with the first letter color. If you find all the colors at the right place you win.

Round example :
You want to try ๐ŸŸฅ๐ŸŸช๐ŸŸจ๐ŸŸฆ๐ŸŸฅ, type rpybr, valid with enter.
No matter if you type lowercase or uppercase. Same if you enter more than 5 letters (Or less). It will just be ignore. You can only enter letters for now.

If you enter the right color at the right place, you will see a green dot ๐ŸŸข. If the color is in the sequence but not at the right place, an orange dot ๐ŸŸ .

Evolutions (Maybe)

  • Input: Add difficulty mode (Impact on rounds)
  • Add more colors
  • Ouput: Improve readability

color-guess's People

Contributors

kmathelot 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.