How angel-informatico/maize-event works
Pokémon Maize Event Giveaway is a Flask website (also usable as an offline desktop app) that generates 13-number redemption codes. The player submits a Trainer ID and event Pokémon choice; the Flask route validates the form and ID, selects that event’s Pokémon attributes, generates the code, and renders the result. The code applies Trainer-ID XOR encoding and checksums; Pikablue additionally randomizes Fly or Surf. The README documents five event variants and in-game redemption. The database write shown in source is commented out. The map reflects sampled runtime code and documented capabilities; event configuration and generation share one source file.
Main entry points: views.py Giveaway route · index.html Giveaway page · __init__.py Flask app · desktop.py Desktop launcher
Components 13
Web experience
- Giveaway route
app/views.py - Trainer ID form
app/forms.py - Giveaway page
app/templates/index.html - Page styling
app/static/css/main.css
Event code generation
- Event definitions
app/views.py - Pikablue move choice
app/views.py - Code generator
app/views.py
Runtime entry points
- Flask app
app/__init__.py - Desktop launcher
desktop.py - Desktop window
desktop.py - Vercel adapter
api/index.py
Other components
- Player
- Pokémon Maize
Connections 15
- Player → Giveaway page: opens
- Giveaway page → Giveaway route: submits choices
- Giveaway route → Trainer ID form: validates
- Giveaway route → Event definitions: selects event
- Giveaway route → Pikablue move choice: requests move
- Giveaway route → Code generator: requests code
- Pikablue move choice → Code generator: provides move
- Giveaway route → Giveaway page: renders result
- Giveaway page → Player: shows code
- Player → Pokémon Maize: redeems code
- Flask app → Giveaway route: registers routes
- Desktop launcher → Flask app: starts server
- Desktop launcher → Desktop window: opens window
- Desktop window → Flask app: loads local app
- Vercel adapter → Flask app: exports app