Project_MathGame
Since it is the holiday season - its about time you gave back to Mr. Borland. Mr. Borland as you know also teaches math and there are a suprisingly few good math games online. So your assignment, no really your present this week is going to be to make a Math Game for Mr. Borland to use in his class.
Heres an example.
Start with these two classes in a project.
(Note that I already put time in there to start you off)
At a minimum, all students must have: (11 points)
- random problems (can be as easy as I have there - addition)
- random problems work out (1 point)
- new problems everytime they answer (1 point)
- check the problem if its correct and add to score
- problem is checked correctly (1 point)
- added to score correctly (1 point)
- users high score
- shows and updates correctly (1 point)
- leaderboard (online high score)
- shows current leader at beginning(1 point)
- updates leaderboard, if person beats it (1 point)
- timer that counts down.(1 point)
- game stops when time done (1 point)
- reset button (1 point)
- code commented, indented, named well (1 point)
Advanced Students:
I want it to have more of a game feel (whether that is with images, or graphics, or...). Also I want the problems to be more algebraic like 3x+4=19 or x/7-2=26. Come on- give me a real present this year - make it nice.
You must have:
- Harder algebraic or intersting problems.
- graphics or more of a game feel.
Hints:
- Notes on fonts
- To listen if enter is pressed on a textfield, just add an actionListener to the textfield
Lets break this down:
- Make a basic gui - it will have
- a label for the problem
- a textfield for the answer
- a reset button
- highscore textfield
- leaderboard textfield
- Start with adding a random problem.
- create 2 random ints, that would be good for adding
- have them appear in a textfield like I have
- save the answer as a global variable
- Have a textfield for the answer
- If they hit enter on the textfield, check if its right add it to the score
|