MindGames

A modern mental math training application designed to improve arithmetic skills through chain-based problem solving.


What is MindGames?

MindGames is a Next.js web application that generates linked math problem chains for mental arithmetic practice. Unlike traditional math drills where each problem is independent, MindGames creates connected problems where each answer becomes the starting value for the next calculation.

This chain-based approach encourages sequential mental calculation, improving both speed and accuracy while making practice more engaging than traditional worksheets.


Key Features

Chain-Based Problems

Problems flow naturally from one to the next, creating a continuous calculation experience:

24 โ†’ รท4 โ†’ [6] โ†’ ร—5 โ†’ [30] โ†’ +12 โ†’ [42] โ†’ -8 โ†’ [34]

Each answer feeds into the next problem, encouraging
sequential mental calculation without paper.

Operation Mix Control

Customize the balance of arithmetic operations with percentage-based presets:

PresetAddSubtractMultiplyDivideBest For
Random25%25%25%25%Balanced practice
Basic40%40%10%10%Beginners
Advanced20%20%30%30%Intermediate
Expert10%10%40%40%Advanced users

Kid and Adult Profiles

Two distinct modes optimized for different audiences:

๐Ÿ‘ถ Kid Mode
  • โ€ข Encouraging messages after each chain
  • โ€ข Confetti celebration on completion
  • โ€ข Fun, motivating language
  • โ€ข Larger touch targets
๐Ÿ‘ค Adult Mode
  • โ€ข Clean, professional interface
  • โ€ข Focus on metrics and accuracy
  • โ€ข No animations or celebrations
  • โ€ข Compact information density

Responsive Design

  • Desktop (1600px): Wide layout with persistent settings sidebar
  • Tablet: Collapsible settings panel
  • Mobile: Vertical layout with full equations (e.g., 32 ร— 3 = ?)
  • Theme: Dark and light mode support

Technology Stack

LayerTechnologyPurpose
FrameworkNext.js 14App Router, server components
LanguageTypeScriptType safety, better DX
StylingTailwind CSSUtility-first styling
StateReact Context + useReducerGlobal state management
IconsLucide ReactConsistent iconography
Animationscanvas-confettiKid mode celebrations
TestingJest + RTLUnit and integration tests

Quick Start

# Clone the repository
git clone https://github.com/zeroleaf/MindGames.git
cd MindGames

# Install dependencies
npm install

# Start development server
npm run dev

# Open http://localhost:3000

Project Metrics

63
Tests
100%
Pass Rate
~78%
Coverage
v1.2.0
Version

Documentation