Sha256: f8f049eff033c9194ab21373174248838d1e6c59247430b788e394e54e1b8f42

Contents?: true

Size: 294 Bytes

Versions: 3

Compression:

Stored size: 294 Bytes

Contents

module Shogi
  module Format
    module CSA
      module Cell
        def place_csa
          "#{x}#{y}"
        end

        def piece_csa
          if @piece
            "#{turn ? "+" : "-"}#{@piece.csa}"
          else
            " * "
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shogi-ruby-0.1.0 lib/shogi/format/csa/cell.rb
shogi-ruby-0.0.9 lib/shogi/format/csa/cell.rb
shogi-ruby-0.0.8 lib/shogi/format/csa/cell.rb