Skip to content

dev-canon/math-mini-games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

81 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Math Mini Games - Unified System

๐Ÿงฎ Play Live: https://math-mini-games.vercel.app/

๐ŸŽฎ About

An engaging collection of 6 educational math mini-games with a completely unified system where all games operate identically. Designed for students, kids, and math enthusiasts of all ages. Perfect for improving mental math skills, pattern recognition, and mathematical reasoning.

๐ŸŽฏ Games Included

  1. Equation Balance โš–๏ธ - Fill in the blanks to balance mathematical equations
  2. Number Sequences ๐Ÿ”ข - Complete number patterns and sequences
  3. Fraction Match โš—๏ธ - Find equivalent fractions
  4. Quick Mental Math โšก - Fast-paced arithmetic with 8-second timer
  5. Multi-Tasking ๐ŸŽฏ - True/False equation evaluation with 8-second timer
  6. Word Problems ๐Ÿ“– - Real-world math scenarios with 100+ questions

โœจ Unified System Features

ALL GAMES OPERATE IDENTICALLY:

  • ๐Ÿ• 8-Second Timer - Every game has the same 8-second countdown
  • โšก Speed Bonuses - Earn 0-50 bonus points based on how fast you answer
  • ๐ŸŽฏ 5 Choice Options - Exactly 5 answer choices for all number-based games
  • ๐ŸŽฎ Same Interaction - Click number โ†’ auto-fill (1 blank) or select blank first (multiple blanks)
  • ๐Ÿ”„ Question Rotation - No question repeats for 20+ questions across all games
  • โค๏ธ Lives System - Three lives per game for added challenge
  • ๐Ÿ† Progressive Scoring - Earn points and build streaks consistently
  • ๐Ÿ“ฑ Responsive Design - Optimized for mobile, tablet, and desktop
  • โŒจ๏ธ Keyboard Shortcuts - Space/Enter for quick navigation
  • ๐ŸŽจ Visual Feedback - Instant success/error indicators
  • ๐Ÿ“Š Performance Tracking - Score and streak monitoring

๐Ÿš€ Performance Optimizations

Web-Optimized Features

  • SEO Ready - Comprehensive meta tags and social media cards
  • PWA Support - Install as app on mobile devices
  • Service Worker - Offline functionality and caching
  • Performance Monitoring - Optimized DOM operations and memory usage
  • Accessibility - Screen reader friendly and keyboard navigation
  • Fast Loading - Preloaded resources and optimized assets

Technical Stack

  • Frontend: Vanilla HTML5, CSS3, JavaScript (ES6+) - Unified System Architecture
  • Performance: Cached DOM elements, unified game engine (574 lines vs 1,100+ complex code)
  • PWA: Service Worker, Web App Manifest
  • SEO: Open Graph, Twitter Cards, structured data
  • Deployment: Vercel with automatic GitHub integration

๐Ÿ—๏ธ Deployment

This project is optimized for web deployment with:

  • Vercel Ready - Automatic builds and deployments from GitHub
  • CDN Optimized - Fast global content delivery
  • HTTPS Enabled - Secure by default
  • PWA Features - App-like experience on mobile

Quick Deploy to Vercel

  1. Connect your GitHub repository to Vercel
  2. Build settings are automatically detected
  3. Deploy happens automatically on every push to main branch
  4. No build commands needed - pure static site

๐ŸŽฏ Educational Value

Perfect for:

  • Students - Homework help and skill building
  • Teachers - Classroom activities and assessments
  • Parents - Fun learning activities for kids
  • Math Enthusiasts - Brain training and mental agility

Skills Developed

  • Mental arithmetic and calculation speed
  • Pattern recognition and logical thinking
  • Fraction understanding and equivalency
  • Multi-tasking and attention management
  • Problem-solving under time pressure

๐ŸŽจ User Experience

  • Intuitive Interface - Clean, modern design
  • Instant Feedback - Visual success/error indicators
  • Progressive Difficulty - Games adapt to player skill
  • Engaging Animations - Smooth transitions and effects
  • Cross-Platform - Works on all devices and browsers

๐Ÿ“ฑ Mobile-First Design

  • Touch-friendly interface
  • Responsive layout
  • Portrait and landscape support
  • Fast touch response
  • Optimized for small screens

๐Ÿ”ง Browser Support

  • Chrome/Edge 60+
  • Firefox 55+
  • Safari 12+
  • Mobile browsers (iOS Safari, Chrome Mobile)

๐Ÿ“ˆ Analytics & Monitoring

Ready for integration with:

  • Google Analytics
  • Performance monitoring
  • Error tracking
  • User behavior analysis

๐ŸŽฎ Start Playing: https://math-mini-games.vercel.app/

Made with โค๏ธ for math education and learning.

๐ŸŽฎ Unified Game System

Complete System Unification:

ALL 6 GAMES FOLLOW IDENTICAL PROCEDURES:

  • 8-Second Timer with speed bonuses (0-50 points)
  • 5 Choice System for all number-based games
  • Smart Auto-Placement - Click number โ†’ auto-fill if 1 blank, manual selection for multiple blanks
  • Question Rotation - No repeats for 20+ questions
  • Same Scoring - 10 base points + speed bonus
  • Same Lives - 3 lives per game
  • Same Interface - Unified game screen for all games

Six Games:

  1. Equation Balance - Fill in blanks to balance mathematical equations
  2. Number Sequences - Complete number patterns and sequences
  3. Fraction Match - Find equivalent fractions
  4. Quick Mental Math - Fast calculations with 8-second timer
  5. Multi-Tasking - True/False equation judgments with 8-second timer
  6. Word Problems - Real-world math scenarios with 100+ questions

Key Features:

  • โฑ๏ธ Unified Timer System - 8-second countdown for ALL games
  • โšก Speed Bonuses - 0-50 bonus points based on response time
  • ๐ŸŽฏ Scoring & Streaks - Earn points and maintain streaks for correct answers
  • โค๏ธ Lives System - Three lives per game with game over mechanics
  • ๐ŸŽฎ Unified Interaction - Click blanks then numbers OR numbers then blanks (same for all games)
  • ๐Ÿ”„ Smart Auto-Placement - Automatic filling for single blanks, manual for multiple
  • ๏ฟฝ Question Rotation - No question repeats for 20+ questions across all games
  • ๐Ÿ“ฑ Responsive Design - Works on desktop, tablet, and mobile devices
  • ๐ŸŽจ Modern UI - Unified interface with consistent styling

๐Ÿš€ Quick Start

  1. Visit https://math-mini-games.vercel.app/
  2. Choose any of the 6 mini-games from the main menu
  3. All games work identically: 8-second timer, speed bonuses, 5 choices
  4. Click on blank spaces and then numbers (or vice versa) to fill in answers
  5. Try to beat the 8-second timer for maximum speed bonus!
  6. Maintain your streak and beat your best score across all games!

๐Ÿ“ Project Structure

math-mini-games/
โ”œโ”€โ”€ index.html          # Unified game interface for all 6 games
โ”œโ”€โ”€ styles.css          # Unified styling with game-container architecture
โ”œโ”€โ”€ script.js           # Complete unified game engine (574 lines)
โ”œโ”€โ”€ script-old-backup.js # Previous complex system (preserved)
โ”œโ”€โ”€ sw.js              # Service worker for PWA functionality
โ”œโ”€โ”€ manifest.json      # Web app manifest
โ”œโ”€โ”€ README.md          # This file
โ””โ”€โ”€ .github/
    โ””โ”€โ”€ copilot-instructions.md  # Development guidelines

๐ŸŽฏ Game Rules (Unified System)

ALL GAMES FOLLOW THE SAME PATTERN:

  • 8-second timer with speed bonuses (0-50 points)
  • 5 answer choices for number-based games
  • 3 lives per game
  • Same interaction: click number โ†’ auto-fill or select blank first
  • Questions rotate to prevent repeats

Individual Game Types:

Equation Balance - Solve equations with addition, subtraction, multiplication, division Number Sequences - Complete arithmetic and geometric patterns
Fraction Match - Find equivalent fractions and relationships Quick Mental Math - Fast arithmetic calculations Multi-Tasking - True/False equation evaluation Word Problems - Real-world math scenarios (100+ questions)

๐ŸŒ Deployment

This project is designed for easy deployment to platforms like:

  • Vercel (Current) - Connect GitHub repository for automatic deployment
  • Netlify - Alternative platform with drag and drop
  • GitHub Pages - Push to repository and enable Pages

Current Deployment:

  • Live Site: https://math-mini-games.vercel.app/
  • Automatic Updates: Every push to main branch triggers new deployment
  • GitHub Integration: Connected to o-golding325/math-mini-games repository

๐Ÿ› ๏ธ Development

Technologies Used:

  • HTML5 - Unified semantic structure for all 6 games
  • CSS3 - Unified game-container architecture with responsive design
  • Vanilla JavaScript - Single UnifiedGameEngine class (574 lines)

Unified System Architecture:

  • Single Game Engine - All games use identical timer, scoring, and interaction systems
  • Unified HTML Structure - One game screen serves all 6 games dynamically
  • Consistent Styling - All games share the same visual components and behavior
  • Question Rotation - Smart algorithm prevents question repeats across all games
  • Performance Optimized - Eliminated 1,400+ lines of duplicate code

Development Highlights:

  • Complete code unification - no separate files or operations for different games
  • 8-second timer system with speed bonuses for ALL games
  • Smart auto-placement interaction pattern
  • Unified choice generation algorithm
  • Question rotation system preventing repeats

๐Ÿ“ฑ Browser Compatibility

  • Chrome (recommended)
  • Firefox
  • Safari
  • Edge
  • Mobile browsers (iOS Safari, Chrome Mobile)

๐ŸŽจ Customization

The unified game system can be easily customized by modifying:

  • Questions/Problems: Edit the GAMES data structure in script.js
  • Timer Settings: Adjust the 8-second timer in the UnifiedGameEngine
  • Styling: Modify the unified game-container styles in styles.css
  • Game Rules: Adjust lives, scoring, and difficulty in the unified engine
  • Choice Generation: Modify the smart choice algorithm parameters

๐Ÿ“„ License

This project is open source and available under the MIT License.

๐Ÿค Contributing

Feel free to fork this project and submit pull requests for improvements or bug fixes.


Enjoy learning math through interactive gameplay! ๐ŸŽ“โœจ

About

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors