Module: Feen::Dumper::PiecePlacement
- Defined in:
- lib/feen/dumper/piece_placement.rb
Overview
Handles conversion of piece placement data to FEEN notation string
Constant Summary collapse
- ERRORS =
Error messages
{ invalid_type: "Piece placement must be an Array, got %s", inconsistent_shape: "Inconsistent dimension structure detected", invalid_cell: "Invalid cell content: %s (must be String)" }.freeze
Class Method Summary collapse
-
.dump(piece_placement) ⇒ String
Converts a piece placement structure to a FEEN-compliant string.
Class Method Details
.dump(piece_placement) ⇒ String
Converts a piece placement structure to a FEEN-compliant string
43 44 45 46 |
# File 'lib/feen/dumper/piece_placement.rb', line 43 def self.dump(piece_placement) validate_input(piece_placement) format_placement(piece_placement) end |