lib/alex_codebreaker/modules/settings.rb in alex_codebreaker-0.1.13 vs lib/alex_codebreaker/modules/settings.rb in alex_codebreaker-0.2.0
- old
+ new
@@ -1,11 +1,12 @@
module AlexCodebreaker
module Modules
module Settings
MATCHING = { place: '+', presence: '-' }.freeze
+ CODE_LENGTH = 4
+ WIN_COMPARISON = MATCHING[:place] * CODE_LENGTH
CODE_MIN_DIGIT = 1
CODE_MAX_DIGIT = 6
- CODE_LENGTH = 4
MIN_PLAYER_NAME_LENGTH = 3
MAX_PLAYER_NAME_LENGTH = 20
end
end
end