Dissecting Hangman
There are two folders and an HTML file for the Hangman game. The two folders are named as css
and js
. The index.html
HTML file should contain the following code:
<html lang="en" ng-app="hangman"> <head> <title>Hangman</title> <link rel="stylesheet" href="css/styles.css"> <script src="js/angular.min.js"></script> </head> <body ng-controller="StartHangman"> <p>Hangman</p> <svg width="400" height="400"> <rect ng-show="failedGuess.length >= 1" x="0" y="0" width="40" height="400"></rect> <rect ng-show="failedGuess.length >= 2" x="40" y="20" width="200" height="40"></rect> <rect ng-show="failedGuess.length >= 3" x="173" y="50" width="4" height="100"></rect> <circle ng-show="failedGuess.length >= 3" cx="175" cy="120" r="40"></circle> <line ng-show="failedGuess.length >= 4" x1="175" y1...