function drawHangman(misses) {
	canvasContext.beginPath();

	var path = stickmanCoordinates[misses];

	// Check if we should draw a circle or line.
	if (path.hasOwnProperty('radius')) {
		canvasContext.arc(path.arcCenterX, path.arcCenterY, path.radius, 0, (Math.PI * 2));
	}
	else
	{
		canvasContext.moveTo(path.lineStartX, path.lineStartY);
		canvasContext.lineTo(path.lineEndX, path.lineEndY);
	}
	canvasContext.stroke();
}
/**
 * Draws the hangman figure.
 * @param {number} misses Stickman coordinates index
 */
Draws the hangman figure.
@param {number} misses Stickman coordinates index
Draws the hangman figure . @param { number } misses Stickman coordinates index
function drawHangman(misses) {
	canvasContext.beginPath();
	var path = stickmanCoordinates[misses];
	if (path.hasOwnProperty('radius')) {
		canvasContext.arc(path.arcCenterX, path.arcCenterY, path.radius, 0, (Math.PI * 2));
	}
	else
	{
		canvasContext.moveTo(path.lineStartX, path.lineStartY);
		canvasContext.lineTo(path.lineEndX, path.lineEndY);
	}
	canvasContext.stroke();
}
function drawHangman ( misses ) { canvasContext . beginPath ( ) ; var path = stickmanCoordinates [ misses ] ; if ( path . hasOwnProperty ( 'radius' ) ) { canvasContext . arc ( path . arcCenterX , path . arcCenterY , path . radius , 0 , ( Math . PI * 2 ) ) ; } else { canvasContext . moveTo ( path . lineStartX , path . lineStartY ) ; canvasContext . lineTo ( path . lineEndX , path . lineEndY ) ; } canvasContext . stroke ( ) ; }
Draws the hangman figure.
Draws the hangman figure .
// Check if we should draw a circle or line.