Sha256: fbb5dd973c0908518886d32acf5572690efb9dcb26730c907c74569abebcead6
Contents?: true
Size: 616 Bytes
Versions: 1
Compression:
Stored size: 616 Bytes
Contents
require "colorize" require_relative 'input' module Mastermind module Difficulty def difficulty(msg) puts "#{msg.difficulty_select}" input = user_input case when input == "b" puts "#{msg.beginer_msg}" return col = 0 when input == "m" puts "#{msg.intermidiate_msg}" return col = 2 when input == "a" puts "#{msg.advance_msg}" return col = 4 else puts "#{msg.invalid_entry_msg}" non_valid(msg) end end def non_valid(msg) difficulty(msg) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mastermind_adeybee-0.1.4 | lib/mastermind/difficulty.rb |