Class: Computer

Inherits:
Object
  • Object
show all
Defined in:
lib/Computer.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(player) ⇒ Computer

Returns a new instance of Computer


9
10
11
12
# File 'lib/Computer.rb', line 9

def initialize(player)
  @player = player
  @input = Input.new
end

Instance Attribute Details

#colorsObject

Returns the value of attribute colors


8
9
10
# File 'lib/Computer.rb', line 8

def colors
  @colors
end

#inputObject

Returns the value of attribute input


8
9
10
# File 'lib/Computer.rb', line 8

def input
  @input
end

#levelObject

Returns the value of attribute level


8
9
10
# File 'lib/Computer.rb', line 8

def level
  @level
end

#num_of_charactersObject

Returns the value of attribute num_of_characters


8
9
10
# File 'lib/Computer.rb', line 8

def num_of_characters
  @num_of_characters
end

#num_of_colorsObject

Returns the value of attribute num_of_colors


8
9
10
# File 'lib/Computer.rb', line 8

def num_of_colors
  @num_of_colors
end

#playerObject

Returns the value of attribute player


8
9
10
# File 'lib/Computer.rb', line 8

def player
  @player
end

Class Method Details

.Evaluate(value) ⇒ Object


18
19
20
# File 'lib/Computer.rb', line 18

def self.Evaluate(value)
  
end

Instance Method Details

#serveObject


15
16
# File 'lib/Computer.rb', line 15

def serve()
end