Module: CastlingPieceControl

Included in:
King, Rook
Defined in:
lib/sapphire-chess/movement_rules/castling_piece_control.rb

Instance Method Summary collapse

Instance Method Details

#mark!Object



6
7
8
# File 'lib/sapphire-chess/movement_rules/castling_piece_control.rb', line 6

def mark!
  @moved = true
end

#moved?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/sapphire-chess/movement_rules/castling_piece_control.rb', line 2

def moved?
  @moved
end