• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

shogi-server source


Commit MetaInfo

Revisão56ecfed66b8cc31240c6a1d0bfd6208e40bd69f6 (tree)
Hora2020-04-28 21:34:33
AutorTadaoYamaoka <tadaoyamaoka@gmai...>
CommiterTadaoYamaoka

Mensagem de Log

mateが+のみの場合、評価値が正しく表示されないバグ修正

Mudança Sumário

Diff

--- a/bin/usiToCsa.rb
+++ b/bin/usiToCsa.rb
@@ -445,8 +445,8 @@ class BridgeState
445445 if !@side
446446 @cp *= -1
447447 end
448- elsif /(\s+|^)score\s+mate\s+(-?\d+)/ =~ str
449- @cp = ($2.to_i < 0 ? -100000 : 100000)
448+ elsif /(\s+|^)score\s+mate\s+(-?)/ =~ str
449+ @cp = ($2 == "-" ? -100000 : 100000)
450450 if !@side
451451 @cp *= -1
452452 end