Module: Constants

Included in:
Codebreaker::Game
Defined in:
lib/codebreaker/constants.rb

Constant Summary collapse

PLUS =
'+'.freeze
MINUS =
'-'.freeze
DIFFICULTS =
{
  easy: {
    name: 'easy',
    attempts: 15,
    hints: 2
  },
  medium: {
    name: 'medium',
    attempts: 10,
    hints: 1
  },
  hell: {
    name: 'hell',
    attempts: 5,
    hints: 1
  }
}.freeze
WIN_RESULT =
'++++'.freeze