Class: GameFactory
- Inherits:
-
Object
- Object
- GameFactory
- Defined in:
- lib/ttt_malisa/game_factory.rb
Instance Attribute Summary collapse
-
#player_one ⇒ Object
readonly
Returns the value of attribute player_one.
-
#player_two ⇒ Object
readonly
Returns the value of attribute player_two.
Instance Method Summary collapse
- #create_game ⇒ Object
-
#initialize(board, display, rules, menu) ⇒ GameFactory
constructor
A new instance of GameFactory.
Constructor Details
#initialize(board, display, rules, menu) ⇒ GameFactory
Returns a new instance of GameFactory.
4 5 6 7 8 9 |
# File 'lib/ttt_malisa/game_factory.rb', line 4 def initialize(board, display, rules, ) @board = board @display = display @rules = rules @menu = end |
Instance Attribute Details
#player_one ⇒ Object (readonly)
Returns the value of attribute player_one.
2 3 4 |
# File 'lib/ttt_malisa/game_factory.rb', line 2 def player_one @player_one end |
#player_two ⇒ Object (readonly)
Returns the value of attribute player_two.
2 3 4 |
# File 'lib/ttt_malisa/game_factory.rb', line 2 def player_two @player_two end |