Sha256: 8745ca3768eb2e5b79a01c1e2ebe78f7bfd7bdbb94c74c79f4af010fd06f7fb0

Contents?: true

Size: 488 Bytes

Versions: 7

Compression:

Stored size: 488 Bytes

Contents

# frozen-string-literal: true

module Bioshogi
  class Piece
    class PieceScale
      include ApplicationMemoryRecord
      memory_record [
        { key: :king,   scale: 1.00, },
        { key: :rook,   scale: 1.00, },
        { key: :bishop, scale: 1.00, },
        { key: :gold,   scale: 0.97, },
        { key: :silver, scale: 0.94, },
        { key: :knight, scale: 0.91, },
        { key: :lance,  scale: 0.88, },
        { key: :pawn,   scale: 0.85, },
      ]
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bioshogi-0.0.10 lib/bioshogi/piece/piece_scale.rb
bioshogi-0.0.9 lib/bioshogi/piece/piece_scale.rb
bioshogi-0.0.8 lib/bioshogi/piece/piece_scale.rb
bioshogi-0.0.7 lib/bioshogi/piece/piece_scale.rb
bioshogi-0.0.5 lib/bioshogi/piece/piece_scale.rb
bioshogi-0.0.4 lib/bioshogi/piece/piece_scale.rb
bioshogi-0.0.3 lib/bioshogi/piece/piece_scale.rb