A colorful, interactive web-based quiz application designed for primary school students (ages 7-9) to practice mathematics and learn about measurements in a fun, game-like environment.
-
Basic Math Practice (ฝึกบวก ลบ คูณ หาร)
- Addition, subtraction, multiplication, and division
- Age-appropriate difficulty levels
- Random question generation
- Instant feedback with animations
-
Weight Unit Conversion (แปลงหน่วยน้ำหนัก)
- Convert between kilograms (kg) and grams (g)
- Learn Thai weight unit - ขีด (khit): 1 ขีด = 100 grams
- Compare different weights
- Multiple question types
-
Time & Analog Clock (เวลาและนาฬิกา)
- Read analog clock displays
- Practice telling time
- Hours and half-hours
- Interactive clock visualization
- Bright, colorful gradient backgrounds
- Large, easy-to-read fonts
- Animated feedback (correct/incorrect)
- Score tracking system
- Emoji-enhanced interface
- Responsive design for mobile and desktop
- Open
index.htmlin a web browser (or use the local server below for AI mode) - Select a game module from the main menu
- Answer questions to earn points
- Click the "🏠 Menu" button to return to the main menu
- HTML5
- CSS3 (with gradients and animations)
- Vanilla JavaScript
- SVG for analog clock
- Mathematics: Reinforces basic arithmetic operations
- Measurement: Understanding of weight units and conversions
- Time-telling: Reading analog clocks
- Cultural learning: Introduction to Thai measurement units
- Instant feedback: Helps children learn from mistakes
The application supports both English and Thai (ภาษาไทย) to make it accessible for Thai students learning mathematics.
The AI word-problem feature uses a simple proxy to call Google Gemini securely.
-
Create a
.envfile (see.env.example) and add your API key:GEMINI_API_KEY=YOUR_KEY
-
Install and run the server:
npm installnpm start
-
Open the app at:
http://localhost:3000
The proxy endpoint is POST /api/gemini and returns JSON: { "text": "..." }.
Made with ❤️ for young learners