Giter Site home page Giter Site logo

mutazhelal / jokegenerator Goto Github PK

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

The Joke Generator offers three genres: Riddles, One Liners, and Math Puns. Users can choose a category, read a joke, and rate it.

License: MIT License

Java 100.00%
generator java jokes netbeans

jokegenerator's Introduction

JokeGenerator

The Joke Generator offers three genres: Riddles, One Liners, and Math Puns. Users can choose a category, read a joke, and rate it. The program tracks the number and percentage of jokes liked in each genre. Additionally, users can create, store, and organize their custom jokes. The purpose is to entertain and unleash users' creativity in joke-making.

image

Click the “Generate” button to navigate through the Riddles. The Riddles will appear in the top blue coloured banner.

image

You will then have the option to click the “Tell Me!” button. The answer to the riddle will then be displayed in the bottom blue coloured banner. A confirmation dialog will appear in the middle of your screen, it should not obstruct the view of the program, but you may drag it to a location of your preference by clicking and holding the top portion of that confirmation box. It will ask you: “Did you like that Riddle?”; you can then click either yes (press enter), or click no (press esc). Depending on your response the amount of riddles you like as well as the percent of riddles liked will be shown on the bottom of the panel.

image

Click the “Generate” button to navigate through the One-Liners. The One-Liners will appear in the pink coloured panel. A confirmation dialog will appear in the middle of your screen, it should not obstruct the view of the program, but you may drag it to a location of your preference by clicking and holding the top portion of that confirmation box. It will ask you “Did you like that One-Liner?”; you can then click either yes (press enter), or click no (press esc). Depending on your response the amount of One-Liners you like as well as the percent of One-Liners you liked will be shown on the bottom of the panel.

image

You will then have the option to click the “Tell Me!” button. The answer to the Math Pun will then be displayed in the bottom orange coloured banner. A confirmation dialog will appear in the middle of your screen, it should not obstruct the view of the program, but you may drag it to a location of your preference by clicking and holding the top portion of that confirmation box. It will ask you: “Did you like that Math Pun?”; you can then click either yes (press enter), or click no (press esc). Depending on your response the amount of Math Puns you like as well as the percent of Math Puns liked will be shown on the bottom of the panel.

image

To enter your own custom joke click the top green coloured banner. You can then type the question portion of your joke. For example: “Why did the chicken cross the road?”. Then click the top “Add” button to add your joke question to the list. A confirmation dialog will appear in the middle of your screen, it should not obstruct the view of the program, but you may drag it to a location of your preference by clicking and holding the top portion of that confirmation box. It will ask you: “Are you sure you wish to add that joke to the list?”; you can then click either yes (press enter), or click no (press esc). If you click yes the joke question will be added, if you click no, you will be able to edit the joke question.You can do this as many times as you wish.

image

To enter your custom answer click the middle green coloured panel. You can then type the answer portion of your joke. For example: “To get to the other side!”. Then click the middle “Add” button to add your answer to the list. A confirmation dialog will appear in the middle of the application, it should not obstruct the view of the program, but you may drag it to a location of your preference by clicking and holding the top portion of that confirmation box. It will ask you: “Are you sure you wish to add that answer to the list?”; you can then click either yes (press enter), or click no (press esc). If you click yes the joke question will be added, if you click no, you will be able to edit the joke question. You can do this as many times as you wish.

image

To display your custom jokes, click the “Display” button under the bottom green banner. Your custom jokes will then be displayed in a “Question-Answer format” in that area.

image

If you wish you can clear your jokes. To do so click the “Clear” button next to the “Display” button under the bottom green banner. A confirmation dialog will appear in the middle of your screen, it should not obstruct the view of the program, but you may drag it to a location of your preference by clicking and holding the top portion of that confirmation box. It will ask you: “Are you sure you wish to clear your custom jokes?”; you can then click either yes (press enter), or click no (press esc). If you click yes your custom jokes will be cleared, if you click no your jokes will not be cleared.

image

Any errors or success messages will be displayed in the bottom panels of each joke genre.

image

jokegenerator's People

Contributors

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