Class: Loser

mastermind-game~ Loser

A strategy that always guesses wrong! Kind of an example strategy; mainly to help with testing.


new Loser()

Implements:
  • GameForMachines

Methods


guess()

Guesses the game's secret sequence -- by inspecting the secret and returning a guess with all incorrect values, but which are still valid.

Returns:

A wrong guess at the game's secret.

Type
Array