This was an educational project for me to learn and apply concepts involving standard query language (SQL), database management systems (DBMS), and object relational mappings (ORM).
This project:
- Builds a local database (table) using a DBMS (ex/ MySQL)
- Generates random ROT13 decryption puzzles for the user to answer
- Inserts the answers into the database table
- Queries the table to determine puzzle accuracy
- Displays correct vs incorrect puzzle results
For more details regarding my experience building the project, check the Project Description
- Python 3.11 or greater
- Relational Database Management System (ex/ MySQL, PostgreSQL, SQLite, etc.)
- Python packages:
- SQLAchemy
- Random
- Plotext
- Clone this repo:
git clone https://github.com/a-rust/rot13-puzzle.git
cd rot13_puzzle
- Load up a DBMS:
-- For example, using MySQL
mysql -u <user_name> -p
# Enter password
- Create a new database:
-- For example, using MySQL
CREATE DATABASE <database_name>
- Run ./src/database.py:
python3 ./src/database.py
- Interact with the terminal, and check your database for the full results in the table 'Rot13':
-- For example, using MySQL
SELECT * FROM Rot13_Puzzles