Giter Club home page Giter Club logo

magic8ball's Introduction

My very cheap version of the Magic 8-Ball

Table of Contents

Introduction

It turns out that I am looking for a job near my hometown. No success for now. Companies don't even give answers to my applications or my e-mails. A few days ago, while browsing the Web, I landed on the Wikipedia page for the Magic 8-Ball. I said to myself "Well, if HR people tell me nothing, maybe I should ask a fortune-teller of some kind. Let's make my own". And here it is.

This is a command line application. No fancy graphics, just text, because only text really matters...

DISCLAIMER: I don't believe in divination and the like. Needless to say that my program does not tell any kind of fortune... It's just a game, for fun. And incidentally a pretext to write a small program...

Building and Running

A basic gradle script is provided.

$ cd magic8ball
$ gradle build
$ java -jar build/libs/magic8ball.jar

Alternatively, by hand:

$ cd magic8ball/src/main/java
$ javac MainCLI.java
$ jar cfe magic8ball.jar MainCLI *.class
$ java -jar magic8ball.jar

Example session

A session I had a few minutes ago:

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Welcome. Your fortune-teller will answer all your questions.
Type "quit" at any moment to leave.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Please ask your question: Will I find a job?
I tell you that: Better not tell you now

Please ask your question: Will I find a job?
I tell you that: You may rely on it

Please ask your question: Will I find a job shortly?
I tell you that: Without a doubt

Please ask your question: Will I find a job within one month?
I tell you that: Reply hazy try again

Please ask your question: Will I find a job before October 2016?
I tell you that: Outlook not so good

Please ask your question: Will I find a job before November 2016?
I tell you that: Very doubtful

Please ask your question: Will I find a job before December 2016?
I tell you that: Outlook not so good

Please ask your question: Will I find a job before January 2017?
I tell you that: Most likely

Please ask your question: Will I find a job during December 2016?
I tell you that: It is certain

Please ask your question: quit

Okay... I will update this README file around December 2016 to add the relevant information...

Edit 26 December 2016 (I tend to use British English date format): Hey, I have a job!!!! My program is not that bad after all. But there are probably some adjustments to be made. Actually, they told me that I was hired in October, I started working on November 21st (a training and the like), and completed my first real task during the last two days of November.


magic8ball's People

Contributors

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