Code Monkey home page Code Monkey logo

apenam7 / guessing-integer-game Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 8 KB

At the beginning of the game, the player will first enter (1) a minimum number (a positive integer, > 0), (2) a maximum number that is greater than the minimum and less than 1,000 (ONE THOUSAND), and (3) the number of guesses that the player can have and the number should be less than 10 (<10).The program then will generate a random number between the minimum and the maximum (include both ends). The player can guess the number for several times (depending on the above input in (3)). While guessing the number, the game will give a hint to the player -­‐-­‐ either the guess is too high or too low. If the player can’t guess the number correctly within the allowed number of trials, the game will show the answer and ask if the player wants to play again. If the players guess the number successfully, the game will congratulate the player and ask if the player wants to continue.

License: MIT License

C++ 100.00%

guessing-integer-game's Introduction

Guessing-Integer-Game

At the beginning of the game, the player will first enter (1) a minimum number (a positive integer, > 0), (2) a maximum number that is greater than the minimum and less than 1,000 (ONE THOUSAND), and (3) the number of guesses that the player can have and the number should be less than 10 (<10). The program then will generate a random number between the minimum and the maximum (include both ends). The player can guess the number for several times (depending on the above input in (3)). While guessing the number, the game will give a hint to the player -­‐-­‐ either the guess is too high or too low. If the player can’t guess the number correctly within the allowed number of trials, the game will show the answer and ask if the player wants to play again. If the players guess the number successfully, the game will congratulate the player and ask if the player wants to continue.

guessing-integer-game's People

Contributors

apenam7 avatar

Watchers

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