Guess a Number Web Game
I'm thinking of a number between one and twenty. You get three guesses. Can you figure it out? That is the premise of this simple web game I created using only HTML, CSS, and JavaScript. If you can solve the puzzle in three guesses, then you get to see a nifty animation. If not, you lose! Good luck!
This project was part of an introductory course I took in JavaScript. Total time from start to finish was about 8 hours (mostly time spent on graphics). The game is compatible with all JavaScript enabled browsers.
UPDATE: I have recently done a redesign overhaul on this game. The new application benefits from advanced techniques in HTML5, CSS3 and jQuery. The usability has been vastly increased over the original game, now allowing for easy keyboard interaction. Use the enter key to easily start the game and submit guesses, rather than having to use the mouse. Auto-focus on the text box input makes it easy to enter alot of guesses without having to lift a finger. Game dialogs and scoring has been given a facelift for some added visibilty.
play game