Sha256: 202b7e3a50c7ad58d3ac50184f29d06d15a637765801728929dac13634800c13
Contents?: true
Size: 329 Bytes
Versions: 2
Compression:
Stored size: 329 Bytes
Contents
module Mastermind class Player attr_reader :name def initialize(name:) @name = name end def get_code raise NotImplementedError.new("Abstract player cannot make code.") end def get_guess_for(game) raise NotImplementedError.new("Abstract player cannot guess code.") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mastermind-game-0.0.2 | lib/mastermind/player.rb |
mastermind-game-0.0.1 | lib/mastermind/player.rb |