How elyes-ghouma/bac-surprise works
SMS Results Reveal is a Windows desktop grade-reveal game. The user saves a target average; the app polls Gmail for a matching forwarded SMS, checks its fields, and launches the fullscreen interface when a matching email is found. The interface parses the SMS, compares its average with the saved target, then offers grade guesses, hints, skips, and an average reveal. The graph follows documented and excerpted behavior; generated runtime files not present in the tree are represented by the code that writes or reads them.
Main entry points: main.py Poll and launch · mailforw.py Mail filter · interface.py Fullscreen interface · search.py SMS field check
Components 14
SMS intake
- Poll and launch
main.py - Mail filter
mailforw.py - SMS field check
search.py
Grade data
- SMS field list
inst.txt - Forwarded SMS text
mailforw.py - Saved average
main.py - SMS parser
interface.py - Parsed grade data
data.dat
Reveal game
- Average comparison
interface.py - Fullscreen interface
interface.py - Guess and hints
interface.py - Average reveal
interface.py
Other components
- User
- Gmail IMAP
Connections 18
- User → Poll and launch: enters target
README.md - Poll and launch → Saved average: saves target
main.py - Poll and launch → Mail filter: polls mail
main.py - Mail filter → Gmail IMAP: checks inbox
mailforw.py - Mail filter → SMS field check: validates SMS
mailforw.py - SMS field check → SMS field list: reads fields
search.py - Mail filter → Forwarded SMS text: appends SMS
mailforw.py - Poll and launch → Fullscreen interface: launches interface
main.py - SMS parser → Forwarded SMS text: reads latest SMS
README.md - SMS parser → SMS field list: reads fields
interface.py - SMS parser → Parsed grade data: writes parsed grades
interface.py - Average comparison → Parsed grade data: reads average
interface.py - Average comparison → Saved average: reads target
README.md - User → Fullscreen interface: starts game
README.md - Fullscreen interface → Guess and hints: offers guessing
interface.py - Guess and hints → Average reveal: skips to reveal
interface.py - User → Guess and hints: guesses or skips
README.md - Fullscreen interface → Average reveal: reveals average
README.md