Class: TicTacToe::Player
- Inherits:
-
Object
show all
- Defined in:
- lib/game_tictactoe_alu4078/player.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(mark) ⇒ Player
3
4
5
|
# File 'lib/game_tictactoe_alu4078/player.rb', line 3
def initialize( mark )
@mark = mark
end
|
Instance Attribute Details
#mark ⇒ Object
Returns the value of attribute mark.
7
8
9
|
# File 'lib/game_tictactoe_alu4078/player.rb', line 7
def mark
@mark
end
|
Instance Method Details
#finish(final_board) ⇒ Object
13
14
|
# File 'lib/game_tictactoe_alu4078/player.rb', line 13
def finish( final_board )
end
|
#move(board) ⇒ Object
9
10
11
|
# File 'lib/game_tictactoe_alu4078/player.rb', line 9
def move( board )
raise NotImplementedError, "Player subclasses must define move()."
end
|