Giter Site home page Giter Site logo

project-guess-a-number's Introduction

Ironhack Logo

Guess A Number

Chao-Ting Chang

Data Analytics June 19, Barcelona & 26/06/2019

Content

Project Description

This project aims to build a small game called "Guess A Number". There are three levels, the first one is only to guess a number between 1 and 10. The second level is to guess between 1 and 50, but the computer will give you a hint. The last level is to guess a four-digitals number, where computer will tell you how many match and mis-match you have as a hint.

Workflow

Here is how I developed my project.

  1. Create a gitignore file. (I don't want to provoke Eva. ;D)

  2. Playing Process: a. Computer generate a number b. Ask user to guess a number c. Compare the result and give a hint.

  3. What I need for the playing process: a. The range of the number to be guessed. b. Make the computer generate a number lays in between the range c. Define ow many time one is allowed to guess d. Ask the user to guess a number (Think: what if the user give a number out of range? What if the user give a letter?) e. Compare the result and give a hint to user.

  4. In response to to the step 3: a. Create two variables to establish the max and min values b. Use the max and min values and random function to generate a random number and save it as a variable c. Create a variables to establish how many time the player can guess d. Create a function where allow user to input a number which lays inside our rule e. Create a function to compare the result, use the 4c to restrict the playing time

Organization

Links

Repository
Slides
Trello

project-guess-a-number's People

Contributors

evapanizo avatar ta-data-bcn avatar

Stargazers

 avatar

Watchers

James Cloos 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.