My Math Challenge design notes

Table of Contents

  1. Overview of Game
  2. Type of challenges
    1. balance & shape
    2. tic tac toe
    3. box
  3. programming overview
    1. balance & shape
    2. tic tac toe
    3. box

Overview of game

The game will be an interactive math game with multiple levels. Each level will have three different types of math based challenges. Each type of challenge will require the user to input numbers into multiple fields. Once the correct numbers are placed into appropriate fields the challenge will complete, awards are assigned, & the game progresses to next challenge within that level. Once all challenges are completed on a particular level the level will complete & the game progresses to next level. The next level will increase the mathmatical challenge. Once all levels are complete the game will congratulate the user and go back to introduction screen.

The three types of challenges will be:

  1. balance & shape
  2. tic tac toe
  3. box

Type of challenges

Balance & Shape

See example of balance & shape below. Each question mark is an empty interactive text field ready for user input. All the scales will initially display as "balanced". Once a user inputs a number into a text field the scales will automatically adjust. Once the three correct values are entered into the text fields the math challenge will complete, awards are assigned, & the game progresses to next challenge.

Example balance & shape:

balance & shape

Tic Tac Toe

See Tic Tac Toe example below. A tic tac toe grid will be drawn & centered on screen. Four numbers will be populated in four of the nine possible positions, three of which will be in a line. All remaining "empty" positions will have an interactive text field populated with a question mark (not shown in example). Once the user inputs the correct values into the text fields the math challenge will complete, awards are assigned, & the game progresses to next challenge.

Example Tic Tac Toe (initial / solution):

ticTacToeticTacToeSolution

Box

Below is an example of the box type challenge. The user would input values in the place of question mark. Once the user inputs the correct values into the text fields the math challenge will complete, awards are assigned, & the game progresses to next challenge.

Example Box:

box

Programming Overview

Balance & shapes

Balance & shapes details coming soon

Tic tac toe

overview of functions

drawTicTacToe() draws the tic tac toe grid

populateTicTacBoard() initializes the arrays to null values then randomly populates four numbers with three of them inline & sets boolean value for text field selectable property

createTextFields() creates & populates the text fields

checkWin() compares values with each update to text fields for win conditions & calls score() and nextLevel() if conditions are met

nextLevel() goes to next level

score() adds goodies for completing challenge

Box

box details coming soon