This package provides a wonderful implementation of the hangman game for R. You can choose a word or let the game choose a random word from you from a dictionnary. It also has awesome graphics to display the hangman!
You can easily install it with the devtools
package:
devtools::install_github("norival/rhangman")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.