fox-squirrels-2013/Dear-Team — pull request #14 by thomasgwatson (2013-11-09 18:50:56+00:00)
Title: Stitch

Hey folks @MiyaPapaya @marklevi @lsugino

Please review this.

In it's current state:
-The game is played only in the console
-It displays only correct keystrokes
-It compares keystrokes in their lowercase form (so it ignores any differences in case)
-When it displays the correct keystroke, it displays the current total of incorrect keystrokes
-When the entire string has been typed, it no longer accepts keystrokes (the game has ended)

What I did with the code:
-It's all in controller.js now.
-The other files have been left in there for now. From the other js files, I have commented out any code that I have copied and pasted into controller.js.

Things to add:
-Displaying the test_string in the DOM (it's annoying to have to scroll up the console to check the last words in the string)
-Displaying something to let the player know their final stats and that the game has ended. I attempted this in the gameFinished function with a console.log but that interferred with the returning of TRUE, which was quite unexpected. This interference threw an error in the console.
-No timing function implemented at this time. Shouldn't be toooo hard to make this work.
-Moving the whole display aspect out of the console and into the DOM.
-Separating out most of the functions and their roles into either model, view or controller.