๐ฎ Binary Oracle is a Python-based application that answers Yes/No questions. It uses a deterministic algorithm to provide consistent answers for the same question on the same day.
- Stores a history of questions and answers in a JSON file.
- Detects and retrieves answers for similar questions asked on the same day.
- Provides a fun "thinking" animation for user interaction.
question.py # Main application script
data/
questions.json # JSON file storing question history
- Python 3.7 or higher
- The following Python libraries:
Levenshteinreadline
- Clone this repository or copy the files to your local machine.
- Install the required Python libraries:
pip install python-Levenshtein
- Open a terminal and navigate to the project directory.
- Run the application:
python question.py
- Ask Yes/No questions and enjoy the answers!
THINK_DATA: Set this environment variable to specify a custom directory for storing thequestions.jsonfile. If not set, the default directory is./data.
๐ฎ Welcome to the Binary Oracle...
(Type 'exit' to quit)
๐ง Ask a Yes/No question: Should I buy a new car?
๐ค Thinking...
๐ฌ Answer: Yes
๐ง Ask a Yes/No question: Should I buy a new car?
๐ค Thinking...
๐ Found similar question from today.
๐ฌ Answer: Yes
This project is open-source and available under the MIT License.