An autonomous, end-to-end academic lab assignment solver engine built for Antigravity AI. It automatically parses lab assignment
.docxfiles, writes clean multi-language solution code, executes programs, generates high-definition light-mode terminal screenshots, and compiles publication-grade Word documents & PDFs with zero manual formatting effort.
- Repository:
https://github.com/blazecodeprakhar/Antigravity-Assignment-Solver.git - Branch:
main
- ⚡ Zero-Click Master Solver (
solve_assignment.py): Run a single command or double-clickRun_Solver.batto process raw assignments, execute code, capture output screenshots, and build final.docx&.pdffiles. - 🧠 Intelligent Question Parser & Template Generator (
auto_template.py): Scans raw assignment.docxfiles, extracts problem statements, and generates starter template scripts (workspace/Problem1.py, etc.). - 🎨 Multi-Theme Terminal Renderer: Configurable light mode terminal themes (
cmd_light,powershell_light,macos_light) viaconfig.json. - 📕 Automated PDF Export Module (
export_pdf.py): Converts completed Word documents into university-compliant PDF files automatically. - 🚫 No Code Boxes / Tables: Formats code lines directly as plain text paragraphs in
Consolas($10.5\text{ pt}$ ,$1.15\text{ line spacing}$ ) without table borders or shaded boxes. - 🧹 Automatic Comment Removal: Strips all comment lines (
#,//,/* */) from solution files prior to document compilation to satisfy strict academic submission criteria. - 📄 100% Original Page Preservation: Leaves Pages 1–2 of the raw assignment completely untouched, appending solutions after a clean Page Break.
- 🛡️ Workspace Reset Persistence:
Clear_Workspace.batresets temporary data folders (raw_file/,workspace/,final_output/) while leaving master solver scripts, skills, and configuration rules completely intact.
ai class work/
├── raw_file/ # Place raw input assignment (.docx) here
├── workspace/ # Staging area for code (Problem1.py, etc.) & output screenshots
├── final_output/ # Completed, fully solved docx & pdf assignments
├── guides/ # Reference guidelines & example documents
├── .agents/ # Antigravity agent skills & protocol rules
│ ├── AGENTS.md
│ └── skills/
│ └── assignment_solver/
│ └── SKILL.md
├── config.json # Global solver theme & layout configuration settings
├── auto_template.py # Question extractor & solution template generator
├── solve_assignment.py # Master automated Python pipeline script
├── export_pdf.py # Automated docx-to-pdf conversion module
├── Run_Solver.bat # Double-click launcher for Windows execution
├── Clear_Workspace.bat # Double-click script to reset workspace folders
└── README.md # Complete documentation & architecture guide
| Language | File Extension | Execution Command |
|---|---|---|
| Python | .py |
python Problem1.py |
| JavaScript / Node.js | .js |
node Problem1.js |
| C++ | .cpp |
g++ Problem1.cpp -o Problem1.exe && Problem1.exe |
| C | .c |
gcc Problem1.c -o Problem1.exe && Problem1.exe |
| Java | .java |
javac Problem1.java && java Problem1 |
| C# | .cs |
dotnet run / csc Problem1.cs |
| Go | .go |
go run Problem1.go |
| Rust | .rs |
rustc Problem1.rs && Problem1.exe |
Antigravity (Google DeepMind's agentic AI coding assistant) solves any assignment autonomously using this repository. Here is how:
Place your raw assignment .docx file into the raw_file/ directory.
Send the prompt below to Antigravity AI:
Start assignment
- Parses Assignment: Reads questions, diagrams, and requirements from
raw_file/*.docx. - Generates Templates & Solutions: Writes optimized code files in
workspace/Problem1.py,workspace/Problem2.py, etc. (with zero comments). - Executes & Captures: Runs
python solve_assignment.pyto execute solution scripts and capture light-mode terminal screenshots. - Delivers Solved Document & PDF: Compiles finished
.docx&.pdffiles insidefinal_output/.
- Double-Click Execution (Windows): Simply double-click
Run_Solver.bat. - Manual CLI Command:
python solve_assignment.py python export_pdf.py
Double-click Clear_Workspace.bat to reset temporary assignment data for the next project while keeping all solver scripts and rules 100% intact.