Sha256: fa59790dc800f544292701e9c771d4a9a985e2baea321201bd4dd10fa71d1009

Contents?: true

Size: 415 Bytes

Versions: 9

Compression:

Stored size: 415 Bytes

Contents

# frozen-string-literal: true

module Bioshogi
  class HandLogs < SimpleDelegator
    def to_kif_a(options = {})
      options = {
        with_location: false,
      }.merge(options)

      collect { |e| e.to_kif(options) }
    end

    def to_ki2_a
      collect { |e| e.to_ki2(with_location: true) }
    end

    def to_kif_oneline
      collect { |e| e.to_kif(with_location: true) }.join(" ")
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
bioshogi-0.0.15 lib/bioshogi/hand_logs.rb
bioshogi-0.0.14 lib/bioshogi/hand_logs.rb
bioshogi-0.0.10 lib/bioshogi/hand_logs.rb
bioshogi-0.0.9 lib/bioshogi/hand_logs.rb
bioshogi-0.0.8 lib/bioshogi/hand_logs.rb
bioshogi-0.0.7 lib/bioshogi/hand_logs.rb
bioshogi-0.0.5 lib/bioshogi/hand_logs.rb
bioshogi-0.0.4 lib/bioshogi/hand_logs.rb
bioshogi-0.0.3 lib/bioshogi/hand_logs.rb