Sha256: 077cece54ecd73a8cd8416846e19f2012d4513a45bdf7bb2c6d0ba2eb30956d1

Contents?: true

Size: 682 Bytes

Versions: 2

Compression:

Stored size: 682 Bytes

Contents

# frozen-string-literal: true

module Bioshogi
  class Piece
    class PieceScale
      include ApplicationMemoryRecord
      memory_record [
        # http://kijishi.html.xdomain.jp/komanosize.htm
        { key: :king,   scale: 1.00, }, # 王が一番大きい
        { key: :rook,   scale: 0.99, }, # 飛車と角の大きさは同じでよい
        { key: :bishop, scale: 0.99, },
        { key: :gold,   scale: 0.98, }, # 金・銀の大きさは同じ
        { key: :silver, scale: 0.98, },
        { key: :knight, scale: 0.97, }, # 桂馬の香車の差は大きい
        { key: :lance,  scale: 0.95, },
        { key: :pawn,   scale: 0.94, },
      ]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bioshogi-0.0.15 lib/bioshogi/piece/piece_scale.rb
bioshogi-0.0.14 lib/bioshogi/piece/piece_scale.rb