Class: ChessData::PieceDefn
- Inherits:
-
Struct
- Object
- Struct
- ChessData::PieceDefn
- Defined in:
- lib/chess_data/board.rb
Overview
Pieces are structures, made from:
-
piece: is a string “P”, “p”, “N”, “n”, etc
-
square: is square definition, either a symbol :e4 or string “E4”
Instance Attribute Summary collapse
-
#piece ⇒ Object
Returns the value of attribute piece.
-
#square ⇒ Object
Returns the value of attribute square.
Instance Attribute Details
#piece ⇒ Object
Returns the value of attribute piece
7 8 9 |
# File 'lib/chess_data/board.rb', line 7 def piece @piece end |
#square ⇒ Object
Returns the value of attribute square
7 8 9 |
# File 'lib/chess_data/board.rb', line 7 def square @square end |