Class: SetMove
- Inherits:
-
Object
- Object
- SetMove
- Includes:
- HasHints
- Defined in:
- lib/software_challenge_client/set_move.rb
Overview
Ein SetMove platziert einen Stein auf dem Spielbrett
Instance Attribute Summary collapse
-
#piece ⇒ Object
readonly
Returns the value of attribute piece.
Attributes included from HasHints
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(piece) ⇒ SetMove
constructor
Erstellt ein neuen leeren Legezug.
- #to_s ⇒ Object
Methods included from HasHints
Constructor Details
#initialize(piece) ⇒ SetMove
Erstellt ein neuen leeren Legezug.
12 13 14 15 |
# File 'lib/software_challenge_client/set_move.rb', line 12 def initialize(piece) @piece = piece @hints = [] end |
Instance Attribute Details
#piece ⇒ Object (readonly)
Returns the value of attribute piece.
9 10 11 |
# File 'lib/software_challenge_client/set_move.rb', line 9 def piece @piece end |
Instance Method Details
#==(other) ⇒ Object
17 18 19 |
# File 'lib/software_challenge_client/set_move.rb', line 17 def ==(other) piece == other.piece end |
#to_s ⇒ Object
21 22 23 |
# File 'lib/software_challenge_client/set_move.rb', line 21 def to_s "SetMove(#{piece}" end |