"To be, or not to be, that is the question" (c) Hamlet
Simple script helps you to answer your question and make a right decision (don't take seriously).
Read more about Magic 8 ball.
- Prepare your question.
- Installed Ruby interpreter (definately works on ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux])
- Clone it
- Move to folder you've cloned through terminal (cd path_to_cloned_proj)
- Run as mentioned:
ruby 8ball.rb
- Wait for execution.
- Get your answer.
Кто вопрошает, тот получит ответ:
Генерирую ответ...
Мой ответ — «нет»
Scipts provided as it is.
In files greetings.txt and answers.txt you can add your questions and greetings phrases.