Module: CodebreakerVk

Defined in:
lib/codebreaker_vk.rb,
lib/codebreaker_vk/game.rb,
lib/codebreaker_vk/config.rb,
lib/codebreaker_vk/version.rb,
lib/codebreaker_vk/game_process.rb,
lib/codebreaker_vk/errors/format_error.rb,
lib/codebreaker_vk/errors/max_hint_error.rb,
lib/codebreaker_vk/errors/difficulty_level_error.rb

Defined Under Namespace

Classes: Error, Game, GameProcess

Constant Summary collapse

CODE_LENGTH =
4
EXACT_MATCH_SIGN =
'+'
NUMBER_MATCH_SIGN =
'-'
MIN_CODE_NUMBER =
1
MAX_CODE_NUMBER =
6
DIFFICULTIES =
{
    kid: { tries: 15, hints: 2 },
    average: { tries: 10, hints: 1 },
    hacker: { tries: 5, hints: 1 }
}.freeze
VERSION =
'0.2.0'
FormatError =
Class.new(StandardError)
MaxHintError =
Class.new(StandardError)
DifficultyLevelError =
Class.new(StandardError)