Module: Constants

Defined in:
lib/codebreaker/constant.rb

Constant Summary collapse

LEVELS =
{
  easy: { attempts: 15, hints: 2 },
  medium: { attempts: 10, hints: 1 },
  hell: { attempts: 5, hints: 1 }
}.freeze
PLUS =
'+'
MINUS =
'-'
WIN_NUMBER =
4
DESIRED_NUMBER =
/^[1-6]{4}$/.freeze
LENGTH_RANGE =
(3..20).freeze
RANGE =
(1..6).freeze
NUMBER_OF_DIGITS =
4
PATH =
'./data/statistic.yml'