Code Monkey home page Code Monkey logo

numberguessergame's Introduction

NumberGuesserGame

A simple "Guess the number" game.There is an option to exactly guess from 1 to 10 ,or guess if the next number is Lower,Equal or Higher than the current from 0 to 100.

Main Frame

Here is the information for the starting window,which only gives you the option to choose to play "Guess the Number" or "Higher,Lower,Equal"(that are different classes).

image

GuessGame class

Starts the "Number Guesser"game where you have to guess a random number from 1 to 10.You also have 10 lives and you lose lives for every wrong guess,based on the absolute value when you substract the right number from the number guessed.After every guess a new right number is generated.If you have guessed right you heal 5 lives.

image

Wrong Guess

image

The Window when you have 0 lives

image

There is also UppercaseDocumentFilter class that restricts you to write only digits from 0 to 9.

RangeGame class

Here you get a random number and you have to guess if the next one is going to be of higher,equal or lower value.The range of the numbers here is from 0 to 100 and you have 50 lives instead(because you can lose more),you lose lives based on the difference between the random number and the previus number if you have guessed wrong.

image

When you fail

image

You can try the program at out/artifacts/...

numberguessergame's People

Contributors

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