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:
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.
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.
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.
Balance & shapes details coming soon
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 details coming soon