Hangman challenge

Developing a simple game seems one of the best exercises when learning javascript – or any programming language in general. That may be because on top of being engaging and allowing you to see the results almost right away, it’s simply fun playing!

Among such training games there are for instance rock-paper-scissors, hangman, snake or minesweeper – but any game will do as long as they allow you to put what you learn to a good use. You can practice your skills by creating various game components – from simple interfaces and objects’ movement, through keeping scores, and collision detection to enemies’ AI. Once you begin, the possibilities are near endless.

This time, however, we did something quite different – we made up a challenge to code a hangman game WITHOUT using javascript at all!

This is what we achieved using pure html and css, and optionally a little bit of server-side templating.