JesseRWeigel/battlemath

A basic math game for children

37

stars

232

commits

TypeScript

primary language

Sep 9, 2026

updated

jesserweigel.github.io/battlemath/
cypress-io
hacktoberfest
javascript
reactjs

README

BattleMath

A simple browser based game that helps children learn the four basic fundamentals of math

  • Subtraction
  • Addition
  • Multiplication
  • Division

Children will be tested on their skills with added difficulties and decimals. The game will consists of difficulties ranging from easy to hard

DifficultyDescription
EasyContains digits ranging from 1-9
MediumContains digits ranging from 10-99
HardContains digits ranging from 100-999

The standard gameplay will consist of whole number answers. Players can also select a Mode Type to change the structure of the questions:

Mode TypeDescription
Whole NumberStandard integers (default)
DecimalsNumbers with up to two decimal places
NegativesIntroduces negative numbers into problems

These mode types combine with the difficulty and operator settings, giving children a wide range of practice scenarios.

Built With

Quick Start

git clone git@github.com:JesseRWeigel/battlemath.git
cd battlemath

yarn install

yarn start

Publish

npm run build

Scoring System

Each question starts a 30-second countdown timer. Faster correct answers earn more points:

SpeedPoints
Under 5 seconds10
Under 10 seconds8
Under 15 seconds6
Under 20 seconds4
Under 25 seconds2
25 seconds or more1

Wrong answers earn 0 points. Your total score accumulates across all questions, and your best score for the session is tracked. The timer changes color as time runs low (green to yellow to red) to keep things exciting!

Roadmap

  • Simple UI with Addition, Subtraction, Multiplication, Division questions
  • Background music and sound effects
  • Deploy to github pages
  • Character art for hero and enemies
  • Difficulty selection (Easy, Medium, Hard)
  • Mode types (Whole Number, Decimals, Negatives)
  • Point System

Contributors

JesseRWeigel

157 commits

dependabot[bot]

35 commits

ayrbox

16 commits

Ririio

5 commits

JesseRWeigel/battlemath

A basic math game for children

37

stars

232

commits

TypeScript

primary language

Sep 9, 2026

updated

jesserweigel.github.io/battlemath/
cypress-io
hacktoberfest
javascript
reactjs

README

BattleMath

A simple browser based game that helps children learn the four basic fundamentals of math

  • Subtraction
  • Addition
  • Multiplication
  • Division

Children will be tested on their skills with added difficulties and decimals. The game will consists of difficulties ranging from easy to hard

DifficultyDescription
EasyContains digits ranging from 1-9
MediumContains digits ranging from 10-99
HardContains digits ranging from 100-999

The standard gameplay will consist of whole number answers. Players can also select a Mode Type to change the structure of the questions:

Mode TypeDescription
Whole NumberStandard integers (default)
DecimalsNumbers with up to two decimal places
NegativesIntroduces negative numbers into problems

These mode types combine with the difficulty and operator settings, giving children a wide range of practice scenarios.

Built With

Quick Start

git clone git@github.com:JesseRWeigel/battlemath.git
cd battlemath

yarn install

yarn start

Publish

npm run build

Scoring System

Each question starts a 30-second countdown timer. Faster correct answers earn more points:

SpeedPoints
Under 5 seconds10
Under 10 seconds8
Under 15 seconds6
Under 20 seconds4
Under 25 seconds2
25 seconds or more1

Wrong answers earn 0 points. Your total score accumulates across all questions, and your best score for the session is tracked. The timer changes color as time runs low (green to yellow to red) to keep things exciting!

Roadmap

  • Simple UI with Addition, Subtraction, Multiplication, Division questions
  • Background music and sound effects
  • Deploy to github pages
  • Character art for hero and enemies
  • Difficulty selection (Easy, Medium, Hard)
  • Mode types (Whole Number, Decimals, Negatives)
  • Point System

Contributors

JesseRWeigel

157 commits

dependabot[bot]

35 commits

ayrbox

16 commits

Ririio

5 commits

Languages

TypeScript

85.2%

HTML

7.8%

Python

4.6%

JavaScript

2.5%