Giter Club home page Giter Club logo

numberguessinggameapplication's Introduction

Guessing Game

A program that plays a guessing game

Features

  • The program will secretly select a number between 1 and 100 (or a 1 and 1000 if you want it to be a little more challenging.)
  • It will prompt the use for a guess. The user starts with 10 points and gets 10 guesses
  • After each guess the program will tell the user whether the guess is too high, too low, or correct. If correct the game end. Each wrong guess subtracts a point. After the last guess, or a correct guess, the program prints out the secret number and the score.
  • This program will test your use of Loops and branches as well as basic prompts, inputs and assignments. You can work on the program until it works--there is no time limit despite the due date.

Scoring:

  • Selecting a random number: 10 points
  • Variables and assignments: 10 points
  • Naming conventions: 10 following standard naming conventions for variables.
  • Inputs: 10 (this includes a prompt explaining the game, prompting for a guess,)
  • Outputs: 10 (outputting results of quesses (high,low, correct) and outputting the score at the end)
  • Loops: 25 points (The game itself will need to couched in a loop, for extra credit (5 points) you can make it so when the game is over it asks if they want to play another game.)
  • Branches: 25 (testing the guesses, determining if the guess matches the secret number)
  • scoring: 10 (subtracting one for each wrong answer. Maintaining the score outside the loop)
  • Total 100 points

Running the program

Required

  • Java 11 SDK
  • Maven

To run the program run the following command in the terminal:

  • mvn spring-boot:run

`

numberguessinggameapplication's People

Contributors

esteban-gs 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.