Sha256: 51ae6f2a21c3462e65d3497795f06d96bb3e00a1cebfe852cbaf7ac604140092
Contents?: true
Size: 657 Bytes
Versions: 8
Compression:
Stored size: 657 Bytes
Contents
# frozen-string-literal: true module Bioshogi module AI module Evaluator class Level2 < Level1 private # 評価すること # ・盤上の駒の価値 # ・序盤で歩をつく def soldier_score(e) w = e.abs_weight unless e.promoted if t = OpeningBasicTable[:field][e.piece.key] x, y = e.normalized_place.to_xy w += t[y][x] end if t = OpeningBasicTable[:advance][e.piece.key] s = t[e.bottom_spaces] w += s end end w end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems