Method: ChessRB::Position#turn
- Defined in:
- lib/chess_rb/position.rb
#turn ⇒ Object
Returns ‘w’ or ‘b’ if it is white or black’s move, respectively
26 27 28 |
# File 'lib/chess_rb/position.rb', line 26 def turn return @fen_components[1] end |