pangiann / hangman

Hangman is a paper and pencil guessing game for two or more players.
0 stars 0 forks source link

backend: Add Round Class #7

Closed pangiann closed 2 years ago

pangiann commented 2 years ago

Round Class represents an active Round in the Hangman Game. Specifically, keeps track and updates the main state of the game comprised of:

In a nutshell, this class does the following in each round:

  1. Removes unlike words in regard to the selected one
  2. Computes the new probabilities for chars in each position
  3. Computes the points of a winning or losing round

Refs: https://github.com/pangiann/hangman/issues/5