单人基础练习

  • 使用 localStorage 存用户数据

  • 部署到 GitHub Pages 测试

  • 核心功能

    • 随机生成加减乘除题目
    • 计时器与得分统计
    • 历史成绩查看
  • 技术实现

    // 题目生成示例
    function generateQuestion(difficulty) {
      const ops = ['+', '-', '×', '÷']
      const a = Math.floor(Math.random() * difficulty)
      const b = Math.floor(Math.random() * difficulty)
      const op = ops[Math.floor(Math.random() * ops.length)]
      return { question: `${a} ${op} ${b}`, answer: compute(a, b, op) }
    }
    
No due date
100% Completed
#1 by Coldin04 was merged 2025-04-25 13:36:24 +00:00