Module: FEEN::Dumper
- Defined in:
- lib/feen/dumper.rb,
lib/feen/dumper/turn.rb,
lib/feen/dumper/square.rb,
lib/feen/dumper/in_hand.rb
Overview
The dumper module.
Defined Under Namespace
Modules: InHand, Turn Classes: Square
Class Method Summary collapse
-
.call(in_hand:, shape:, side_id:, square:) ⇒ String
Dump position params into a FEEN string.
Class Method Details
.call(in_hand:, shape:, side_id:, square:) ⇒ String
Dump position params into a FEEN string.
33 34 35 36 37 38 39 |
# File 'lib/feen/dumper.rb', line 33 def self.call(in_hand:, shape:, side_id:, square:) [ Square.new(shape, square).to_s, Turn.dump(side_id), InHand.dump(in_hand) ].join(" ") end |