Sha256: 846aac9a3ff7799ce9e72a5532a35b5bb3e05fcb0ddbf9535189cdf3a158a47d

Contents?: true

Size: 1.33 KB

Versions: 2

Compression:

Stored size: 1.33 KB

Contents

TODO: delete?

## The 5 Letter Word Game in Hyperloop

We are going to implement a simple game (that is actually quite fun to play) using HyperMesh.

In the 5 letter word game two players each secretly pick a 5 letter word that have 5 different letters.  *truck* and *knife* for example.

Each player guesses a word, and the other player responds with the number of correct letters.

Players continue to take turns until a player guesses the other players word.

Because we are playing on a computer we are going to add some additional rules.

Instead of playing until one of the players correctly guesses a word, we will play until both players correctly guess a word, or one of the players concedes.

Players win by having the *fewest* points.

Points are calculated as follows:

+ 2 points for each guess
+ 2 points for conceding
+ 1 point if a player miscalculates the number of correct letters in the other players guess.  The app will give the other player the true answer anyway.
+ 3 points if a player asks the app to guess a word.  The app will always guess an optimal word (i.e. given all the previous guesses, the app will calculate a word that could be correct.)

In addition the players agree on a time per turn.  If time runs out then the app will guess, and the player will get 3 points instead of 2 (i.e. the last rule above will apply.)

Each

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hyper-mesh-0.6.0 docs/word_game.md
hyper-mesh-0.5.4 docs/word_game.md