Skip to content

A hangman game that is contained in a single HTML page copied from https://onehtmlpagechallenge.com/.

License

Notifications You must be signed in to change notification settings

MartaBerman/hangman_html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hangman HTML

A hangman game that is contained in a single HTML page copied from https://onehtmlpagechallenge.com/.

Netlify Status

This repository is the basis for a GitHub training class for technical writers.

Concepts covered in the course are:

  • Setting up git
  • Cloning a repostiory
  • Committing changes
  • Pushing to a remote repository

What's in the repository?

The repository includes:

  • README.md - This readme file
  • LICENSE - A copy of the GNU GPLv3 license (choosealicense.com)
  • index.html - The HTML file that contains the game code

What's in the HTML file?

The hangman game consists of a single HTML file. The HTML files includes:

  • <style> - The CSS for HTML elements
  • <script> - The functions that define the gameplay.

How do I change the gameplay?

To customize the game, edit the texts in these section of the HTML:

  • const wordList - The list of words for the game
  • game.hasWon() - The messages for the end of the game
  • drawResult(faults) - The messages for incorrect letters
  • pickedLetter(letter) - The messages for when you pick a letter

About

A hangman game that is contained in a single HTML page copied from https://onehtmlpagechallenge.com/.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages