A hangman game that is contained in a single HTML page copied from https://onehtmlpagechallenge.com/.
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
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
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.
To customize the game, edit the texts in these section of the HTML:
const wordList
- The list of words for the gamegame.hasWon()
- The messages for the end of the gamedrawResult(faults)
- The messages for incorrect letterspickedLetter(letter)
- The messages for when you pick a letter