Skip to content

EduardoLR10/hastermind

Repository files navigation

Hastermind

Hastermind, the mastermind game written in Haskell, was created by Eduardo Lemos Rocha, Nothing But the Facts, and Justin Cummins, A.K.A Blockthrasher, as the final Haskell project for Emurgo Academy, and the first DApp360 Blockchain Developer Workforce Cohort. It follows typical Mastermind gameplay, but it is slightly modified.

Hastermind Modifications

  1. The codemaker (also called master) gains points when he provides feedback None to the code breakers.
  2. The codebreakers gain points from Black and White feedback from the code maker.
  3. Points are used to determine the winner if the game goes out of rounds.

Hastermind Gameplay

In Hastermind a Master (player) creates a secret code (a series of colors).
The Master can choose how many colors the secret will have and how many rounds the players will be allowed to guess the secret code. Players then try to guess the colors (in order) of the secret code. The Master then marks Black for the correct color in the correct position, White for the correct color in the incorrect position, and None, for neither correct color nor position. If a player guesses all correct colors in the correct positions in the number of allotted rounds they win the game. Otherwise, the Master wins.

How to play

  1. Select the number of players.
  2. Enter player names.
  3. Select which player will be the Master.
  4. The Master decides how many colors (slots) the code will have.
  5. the Master must then enter the secret code (colors), and how many rounds will be played.
  6. Player One enters first guess.
  7. The Master enters feedback on Player One's guess. The Master enters Black for one token is both the correct color and in the right position. White for one token is the correct color but in the wrong position.
  8. The next player enters their guess.
  9. The Master evaluates.
  10. This continues as above until a player wins or runs out of attempts.

About

A mastermind game written in Haskell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published