Class: Cheater

mastermind-game~ Cheater

A strategy that wins on the first guess by inspecting the game's secret! Kind of an example strategy.


new Cheater()

Implements:
  • GameForMachines

Methods


guess()

Guesses the game's secret sequence -- by returning the secret itself! What a cheater!

Returns:

The game's secret itself! Gah!

Type
Array