From 1596de81cb889862dbad7e876339139e2aa41b5d Mon Sep 17 00:00:00 2001 From: tttak Date: Thu, 1 Dec 2016 01:03:58 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E8=A9=95=E4=BE=A1=E5=80=A4=E3=81=AEfail-hi?= =?UTF-8?q?gh=E3=80=81fail-low=E5=AF=BE=E5=BF=9C=EF=BC=88ShogiGUI=E5=BD=A2?= =?UTF-8?q?=E5=BC=8F=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Qhashima/Form1.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Qhashima/Form1.cs b/Qhashima/Form1.cs index c7078e5..814148f 100644 --- a/Qhashima/Form1.cs +++ b/Qhashima/Form1.cs @@ -286,6 +286,9 @@ public static void kifread(string filename, ref kif inkif) } else { + // fail-high、fail-low対応 + hoge = hoge.Replace("↑", "").Replace("↓", ""); + int t; if (!int.TryParse(hoge, out t)) { value = 0; continue; } value = int.Parse(hoge); From dc8d452281e5434a375ac8507e989f139badbeb9 Mon Sep 17 00:00:00 2001 From: tttak Date: Thu, 29 Dec 2016 17:43:56 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=E8=A9=95=E4=BE=A1=E5=80=A4=E3=81=AEfail-hi?= =?UTF-8?q?gh=E3=80=81fail-low=E5=AF=BE=E5=BF=9C=EF=BC=88=E5=B0=86?= =?UTF-8?q?=E6=A3=8B=E6=89=80=E3=81=AE=E6=A3=8B=E8=AD=9C=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Qhashima/Form1.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Qhashima/Form1.cs b/Qhashima/Form1.cs index 814148f..7866ced 100644 --- a/Qhashima/Form1.cs +++ b/Qhashima/Form1.cs @@ -235,9 +235,13 @@ public static void kifread(string filename, ref kif inkif) } else { + // fail-high、fail-low対応 + string hoge = valueline.Substring(1, valueline.Length - 1); + hoge = hoge.Replace("++", "").Replace("--", ""); + int t; - if(!int.TryParse(valueline.Substring(1, valueline.Length - 1), out t)) { continue; } - value = int.Parse(valueline.Substring(1, valueline.Length - 1)); + if(!int.TryParse(hoge, out t)) { continue; } + value = int.Parse(hoge); } } }