Closed kingj3144 closed 11 years ago
Between turns the game should not start until the user clicks a "Next" button.
I would recorded splitting the createCanvas function into createCanvas, witch creates an empty canvas and a setCanvas, which sets the color of the existing canvas. This way we doing have to recreate the entire element every turn. (sliders should also be reset to a value of 0)
We need to put this value up with the difficulty and then perform if statement checks on the submit button to track if the turn's amount (which will be incremented each time they submit their guess) is at the value specified by the user.
Also the turns will need to be specified by the user so we can implement a simple slider and text entry box so the user can enter a value for turns, i know the assignment says not to limit the turns to any positive number, but if we limit it to something like 100 or 1000 we can easily implement the slider and text box, text boxes have min and max attributes so that will be easily implemented.
I have assigned my self to this and will try to get it working.
I'm gonna attempt to do the timer.
We are accounting for time, but not displaying a timer.
Is the counter done?
NVM I see the timer.
I got turns working and merged the code in. I am closing this issue.
The game needs to restart itself (pick a new color for the next round of the game) when the use hits the submit button at that turn. We also need to keep track of the number of turn and only run the game for the amount of turn specified in the settings.