How harshitmadaan4/neuralarena works
NeuralArena is a browser-based machine-learning game: players progress through challenges and game systems while training models on datasets and trying digit recognition. The browser client communicates with a Flask backend, which validates answers, accepts datasets, prepares data and models, and runs training or inference. The excerpts show the training handler invoking data loading and model construction; several frontend request details and other backend routes are omitted, so those connections are left unasserted or marked unverified.
Main entry points: Backend.py Flask API · NeuralArena.js Game interface
Components 14
Game client
- Game interface
NeuralArena.js - Challenge interaction
NeuralArena.js - Dataset selection
NeuralArena.js - Digit canvas
NeuralArena.js
Backend API
- Flask API
Backend.py - Answer validation
Backend.py
ML workflows
- Dataset upload
Backend.py - Dataset loading
Backend.py - Model construction
Backend.py - Model training
Backend.py - Digit inference
Backend.py
Game progression
- Player state
Backend.py - Progression systems
NeuralArena.js
Other components
- Player
Connections 16
- Player → Game interface: plays
NeuralArena.js - Game interface → Challenge interaction: opens challenges
NeuralArena.js - Game interface → Dataset selection: selects data
NeuralArena.js - Game interface → Digit canvas: draws digits
NeuralArena.js - Game interface → Progression systems: updates
NeuralArena.js - Challenge interaction → Flask API: checks answer
- Dataset selection → Dataset upload: uploads data
- Game interface → Flask API: requests training
- Digit canvas → Digit inference: submits image
- Flask API → Answer validation: dispatches
Backend.py - Flask API → Dataset upload: dispatches
Backend.py - Flask API → Model training: dispatches
Backend.py - Model training → Dataset loading: loads data
Backend.py - Model training → Model construction: builds model
Backend.py - Flask API → Digit inference: dispatches
Backend.py - Flask API → Player state: reads state
Backend.py