コード例 #1
0
 /// <summary>
 /// 局面を全角1文字の配列で表現
 /// </summary>
 /// <param name="yomiKy"></param>
 /// <returns></returns>
 public static string[] ToZen1Hairetu()
 {
     string[] ret = new string[PureSettei.banHeimen];
     for (int iMs = 0; iMs < PureSettei.banHeimen; iMs++)
     {
         Piece km = PureMemory.gky_ky.yomiKy.yomiShogiban.yomiIbashoBan.GetBanjoKoma((Masu)iMs);
         ret[iMs] = SpkKoma.Koma_To_Zen1(km);
     }
     return(ret);
 }
コード例 #2
0
        /// <summary>
        /// 局面を全角1文字の列で表現
        /// </summary>
        /// <param name="yomiKy"></param>
        /// <returns></returns>
        public static string ToZen1Mojiretu(Piece[] komaHairetu)
        {
            StringBuilder sb = new StringBuilder();

            for (int iMs = 0; iMs < komaHairetu.Length; iMs++)
            {
                Piece km = komaHairetu[iMs];
                sb.Append(SpkKoma.Koma_To_Zen1(km));

                // 改行
                if (iMs % PureSettei.banYokoHaba == PureSettei.banYokoHaba - 1)
                {
                    sb.AppendLine();
                }
            }
            return(sb.ToString());
        }
コード例 #3
0
        /// <summary>
        /// 局面を全角1文字の列で表現
        /// </summary>
        /// <param name="yomiKy"></param>
        /// <returns></returns>
        public static string ToZen1Mojiretu()
        {
            StringBuilder sb = new StringBuilder();

            for (int iMs = 0; iMs < PureSettei.banHeimen; iMs++)
            {
                Piece km = PureMemory.gky_ky.yomiKy.yomiShogiban.yomiIbashoBan.GetBanjoKoma((Masu)iMs);
                sb.Append(SpkKoma.Koma_To_Zen1(km));

                // 改行
                if (iMs % PureSettei.banYokoHaba == PureSettei.banYokoHaba - 1)
                {
                    sb.AppendLine();
                }
            }
            return(sb.ToString());
        }