Hangman

As I said, I’ll be regularly reposting content of my old blog on this new one. Here is an edited version of one of my old posts:

I’ll soon restart work on my Hangman game. This time the programming language I’ve chosen is Java. The rules and features of the game are described next. You will notice that I’ve chosen a subset of the original features, this is due to the vagueness of some of the original features.

Rules:

Everyone knows the pen & paper game of Hangman in which you have to guess a word before you are being hanged. If you guess a wrong character, then a new part of the gallows is drawn. When the entire gallows has been drawn, you have lost the game.

Features:

My computer version of the Hangman game will include following features:

  • Several game variants (Normal mode, Time trial, Death race and Battle mode)
  • Several play modes (Human only, Human vs. Human, Human vs. AI, Human vs. AI or Human)
  • AI bot

Artificial intelligence:

The artificial intelligence in the game is a separate entity connecting to the server. Several features I currently have in mind for the AI are:

  • Learning (The AI’s vocabulary grows, as it plays more games)
  • Chatting (The AI’s try to participate in the in-game chatting)
  • Name generation (The bots generate their names either based on a dictionary of names, or based on the other players names)