class Mastermind::Player

Attributes

name[R]

Public Class Methods

new(name:) click to toggle source
# File lib/mastermind/player.rb, line 5
def initialize(name:)
  @name = name
end

Public Instance Methods

get_code() click to toggle source
# File lib/mastermind/player.rb, line 9
def get_code
  raise NotImplementedError.new("Abstract player cannot make code.")
end
get_guess_for(game) click to toggle source
# File lib/mastermind/player.rb, line 13
def get_guess_for(game)
  raise NotImplementedError.new("Abstract player cannot guess code.")
end