Skip to content
tswdcPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Math Learning Games for Kids 🎮

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.

Features

🎯 Three Game Modules

  1. Basic Math Practice (ฝึกบวก ลบ คูณ หาร)

    • Addition, subtraction, multiplication, and division
    • Age-appropriate difficulty levels
    • Random question generation
    • Instant feedback with animations
  2. Weight Unit Conversion (แปลงหน่วยน้ำหนัก)

    • Convert between kilograms (kg) and grams (g)
    • Learn Thai weight unit - ขีด (khit): 1 ขีด = 100 grams
    • Compare different weights
    • Multiple question types
  3. Time & Analog Clock (เวลาและนาฬิกา)

    • Read analog clock displays
    • Practice telling time
    • Hours and half-hours
    • Interactive clock visualization

🎨 Child-Friendly Design

  • 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

How to Use

  1. Open index.html in a web browser (or use the local server below for AI mode)
  2. Select a game module from the main menu
  3. Answer questions to earn points
  4. Click the "🏠 Menu" button to return to the main menu

Technologies

  • HTML5
  • CSS3 (with gradients and animations)
  • Vanilla JavaScript
  • SVG for analog clock

Educational Value

  • 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

Language Support

The application supports both English and Thai (ภาษาไทย) to make it accessible for Thai students learning mathematics.

Gemini AI Proxy (Optional)

The AI word-problem feature uses a simple proxy to call Google Gemini securely.

Setup

  1. Create a .env file (see .env.example) and add your API key:

    • GEMINI_API_KEY=YOUR_KEY
  2. Install and run the server:

    • npm install
    • npm start
  3. Open the app at:

    • http://localhost:3000

The proxy endpoint is POST /api/gemini and returns JSON: { "text": "..." }.


Made with ❤️ for young learners

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages